Keyword

Item image doesn't accept to load a .PNG file

  • victor
  • victor's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #130245 by victor
Hi!
Well, I am streaking an odd issue.

When I try to attach an image via New Item-> Image tab-> Item Image , if I select a PNG file from the server or try to upload a PNG from my PC, the image is not "attached/saved" at all.
It isn't shown in the "Item image preview" after saving, so it is not showing in the K2 article at all.

However if i select a JPG or try to upload a JPG file the picture is shown in the "item image preview" after saving, and shown perfectly in the K2 article.

I have all my permissions in the media/k2 folder to 777.

So any idea about what's happening? I am missing one of the zillion options of the K2, is it a bug, or I am missing something?

Thanks!
Using Joomla 3.2 and latest K2.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #130246 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item image doesn't accept to load a .PNG file
You can revert your 777 permissions to 755.
Is this happening with all png images or a single one? You have to make sure that this image is not too large (check your php upload limit).

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • victor
  • victor's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #130247 by victor
Hi Krigor!
Seems it happens with all the PNGs I am trying. With both uploaded and up-to-upload. My current php.ini limit is 50MB, so it is not due to the 2MB default issue.
After reading old threads ( I don't know if they still apply) seems K2 transforms PNG to JPEG? Maybe K2 doesnt find the library (GD or was GB?) and hence the issue (a warn in such case would be helpful then)?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #130248 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item image doesn't accept to load a .PNG file
It will transform them to jpg, that is correct. But this is not the case, K2 cannot handle images in your installation. If other images are uploaded and handled then GD is uploaded. Are you using any custom .htaccess protection?

Notices and warnings are raised, but its better to turn off error reporting for production sites and enable them on a need-only basis.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • victor
  • victor's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #130249 by victor
Sorry the forced delay.
I've checked the .htaccess and doesnt seem to have anything special at all, neither we're using any .htaccess protection.
This is weird... :blink:

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #130250 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item image doesn't accept to load a .PNG file
Have you tried the DEV version?
getk2.org/assets/get/

PS. Backup first just in case something goes wrong.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum