- Posts: 47
- Thank you received: 1
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
it seem that this topic hasn't found a conclusion yet, right?
I have the same issue
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
Please Log in or Create an account to join the conversation.
Search this line and change the code from
then you must probably restart the server
Important! Always create a backup before you make any changes to your website!
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
- WolfgangOWL
- Offline
- Senior Member
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);
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.