×
Blue Eagle (1.5.0) for K5.1 is released (20 Jul 2018)

Please update the Kunena Blue Eagle to 1.5.0 if you use Kunena 5.1.
We made several bug fixes and improvements. Also Blue Eagle has now all the features from Crypsis.
Download: www.kunena.org/download/templates/category/blue-eagle-5

Question Corrupt/Grey(Gray) images

More
1 year 1 month ago - 1 year 1 month ago #11 by unker
Replied by unker on 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: 1 year 1 month 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
1 year 1 month ago #12 by rich
Replied by rich on 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
1 year 1 month ago - 1 year 1 month ago #13 by unker
Replied by unker on 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: 1 year 1 month ago by unker.
The following user(s) said Thank You: rich

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

More
1 year 1 month ago #14 by WolfgangOWL
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
1 year 1 month ago #15 by rich
Replied by rich on 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
11 months 1 day ago - 11 months 1 day ago #16 by cherryboy
Replied by cherryboy on 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: 11 months 1 day ago by cherryboy.

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

More
10 months 3 weeks ago - 10 months 3 weeks ago #17 by smhoeks
Replied by smhoeks on 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: 10 months 3 weeks ago by smhoeks. Reason: Adding more text.

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

More
9 months 2 weeks ago #18 by Luchen6
Replied by Luchen6 on 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
9 months 2 weeks ago #19 by 810
Replied by 810 on topic Corrupt/Grey(Gray) images
Could you please upload some images, so we can test it more.

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

More
9 months 2 weeks ago - 9 months 2 weeks ago #20 by Luchen6
Replied by Luchen6 on 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: 9 months 2 weeks 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.393 seconds