×
Kunena 5.1 Beta 1 Released (05 Oct 2017)

The Kunena team is pleased to announce Kunena 5.1.0 Beta 1 [K 5.1 Beta 1].
Please read the blog post for information: www.kunena.org/blog/188-kunena-5-1-beta-released

Question Corrupt/Grey(Gray) images

More
4 months 3 weeks ago - 4 months 3 weeks ago #11 by unker
unker replied the topic: Corrupt/Grey(Gray) images
Hi there,

it seem that this topic hasn't found a conclusion yet, right?

I have the same issue :unsure:

Kunena 5.0.9, Joomla 3.7.2, php 7.1 (but tried same also with php 5.6)

I would highly appreiate if somebody could give me a hint... :)

Best Regards
Hartmut
Last Edit: 4 months 3 weeks ago by unker. Reason: Deleted some information, as it wasn't really applicable...

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #12 by rich
rich replied the topic: Corrupt/Grey(Gray) images
I found the cause for this problem. When the following line in the php.ini is comment out.

Search this line and change the code from
; gd.jpeg_ignore_warning = 0
to
gd.jpeg_ignore_warning = 0

then you must probably restart the server
The following user(s) said Thank You: unker, djos

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #13 by unker
unker replied the topic: Corrupt/Grey(Gray) images
Hey rich,

that was the ultimate hint. My only problem was that I have no access to the php.ini on the webserver.
However, creating my own with exactly the above and placed it into the directory of the webinstallation. This changed the setting in the phpinfo from 1 to 0 and now it works with php 7.1.16 (with 7.0.20 it worked before also, with 5.6 anyway).

Many Thanks for your efforts :)
Last Edit: 4 months 3 weeks ago by unker.
The following user(s) said Thank You: rich

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #14 by WolfgangOWL
WolfgangOWL replied the topic: Corrupt/Grey(Gray) images
I also have no access to the php.ini on the webserver. Putting the modified php.ini into the directory of the webinstallation did nod change anything.

So I put the following code into the index.php (in the Joomla base directory) ahead of $app->execute():

ini_set('gd.jpeg_ignore_warning', 0);
The following user(s) said Thank You: rich

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #15 by rich
rich replied the topic: Corrupt/Grey(Gray) images
@unker, @WolfgangOWL
Many thanks for these additional tips.

Please Log in or Create an account to join the conversation.

More
2 months 2 days ago - 2 months 2 days ago #16 by cherryboy
cherryboy replied the topic: Corrupt/Grey(Gray) images
I had the same problem - apply the php change and it appeared to solve the problem. However it has just reoccurred with a picture that appears to have been taken with a samsung phone



The image displays ok here
Attachments:
Last Edit: 2 months 2 days ago by cherryboy.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago - 1 month 4 weeks ago #17 by smhoeks
smhoeks replied the topic: Corrupt/Grey(Gray) images
I'm facing the exact same issue.
I've tried everything - changing from php 5 to 7
Adding the ini_set(‘gd.jpeg_ignore_warning’, 0); to index.php in joomla base directory
Changing it directly in php.ini for both php 5 and 7.

But nothing seems to work.

It happens both when using iPhone (ios 10-11) and Samsung phones.

There is a link to an example here: mustangklubben.dk/fora/opslagstavlen-lin...sportsroof?start=180

Funny thing:
If i first upload the image to facebook and download it to my local - and then uploading it to Mustangklubben.dk -> Its NOT corrupted.

I assume its something to do with the image Exif-data (And facebook in some way strips it?!)

Do anyone have a solution for this?

Update
- If i change the image file from .jpg (default iPhone for regular images) to .png and then upload it, it uploads without being corrupted.
Last Edit: 1 month 4 weeks ago by smhoeks. Reason: Adding more text.

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #18 by Luchen6
Luchen6 replied the topic: Corrupt/Grey(Gray) images
Since sometime I also had Mostly grey images on our site. Especially with portrait photo's taken with a phone or tablet.
It took some investigation and finally I made a changed in the file ../libraries/kunena/upload/upload.php.
The part // Get filename from stream and the belonging code on lines350 (about) I places outside the while loop. now it works fine!
The following user(s) said Thank You: Don

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #19 by 810
810 replied the topic: Corrupt/Grey(Gray) images
Could you please upload some images, so we can test it more.

Your feedback on the JED helps us improve Kunena!

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago - 2 weeks 2 days ago #20 by Luchen6
Luchen6 replied the topic: Corrupt/Grey(Gray) images
Here you have some examples.

Original image:

Result image:

Result image after rework upload file:

I see on your forum the problem does not appear.
I see a change in the size of the file image_2017-10-22-5.jpeg ( 223757 bytes) and the file image_2017-11-01-5.jpeg (225749 bytes).
The size of the orignal file is 1695914 bytes.

Testing has been done on a local PC.
After clicking attachments add files and selecting the file a copy is put in the folder c:/xampp/tmp. The file is reduced in size but still correct.

In the while loop the image is uploaded to .. /tmp/uploads in pieces of 8192 (?) bytes. When I remember well, after the third loop the first part of the result file changes. This happens in the imagerotate module.

I also addes a ZIP file with the original images.
Attachments:
Last Edit: 2 weeks 2 days ago by Luchen6.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.571 seconds