Kunena 6.3.7 Released

The Kunena team has announce the arrival of Kunena 6.3.7 [K 6.3.7] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x/5.2.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

Question Corrupt/Grey(Gray) images

More
7 years 5 months ago - 7 years 5 months 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: 7 years 5 months 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
7 years 5 months 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
Code:
; gd.jpeg_ignore_warning = 0
to
Code:
gd.jpeg_ignore_warning = 0

then you must probably restart the server


Important! Always create a backup before you make any changes to your website!
The following user(s) said Thank You: unker, djos

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

More
7 years 5 months ago - 7 years 5 months 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: 7 years 5 months ago by unker.
The following user(s) said Thank You: rich

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

More
7 years 5 months 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
7 years 5 months ago #15 by rich
Replied by rich on topic Corrupt/Grey(Gray) images
@unker, @WolfgangOWL
Many thanks for these additional tips.


Important! Always create a backup before you make any changes to your website!

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

More
7 years 2 months ago - 7 years 2 months 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: 7 years 2 months ago by cherryboy.

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

More
7 years 2 months ago - 7 years 2 months 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: 7 years 2 months ago by smhoeks. Reason: Adding more text.

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

More
7 years 1 month 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
7 years 1 month 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
7 years 1 month ago - 7 years 1 month 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: 7 years 1 month ago by Luchen6.

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

Time to create page: 0.697 seconds