Upload PNG Problem

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
wassim.hattab
Posts: 20
Joined: 13 Jul 2016, 08:03

Upload PNG Problem

Post by wassim.hattab » 29 Jul 2016, 11:29

I'm trying to add catalogs in aimeos all is fine but when i try to add a media in the catalog i get Upload Failed (undefined) i tried to upload jpg and png images and i got same error.
Last edited by wassim.hattab on 01 Aug 2016, 13:24, edited 1 time in total.

wassim.hattab
Posts: 20
Joined: 13 Jul 2016, 08:03

Re: Upload Failed (undefined)

Post by wassim.hattab » 01 Aug 2016, 11:15

When i removed the debugger from the config all goes fine but when i upload a png image with transparency it replace the transparency with a color (white or yellow or black it depends on the image) does anyone faced this problem

wassim.hattab
Posts: 20
Joined: 13 Jul 2016, 08:03

Re: Upload Failed (undefined)

Post by wassim.hattab » 01 Aug 2016, 13:12

This is a screen shot about the image i'm trying to upload and the result when i upload it via aimeos
Attachments
Untitled-1.jpg
Untitled-1.jpg (95.63 KiB) Viewed 2713 times

wassim.hattab
Posts: 20
Joined: 13 Jul 2016, 08:03

Re: Upload PNG Problem

Post by wassim.hattab » 01 Aug 2016, 13:55

The problem was solved when adding this row in save function:
imagesavealpha($this->image, TRUE);

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

Re: Upload PNG Problem

Post by aimeos » 01 Aug 2016, 14:55

This has been fixed three weeks ago and it should be already in the 2016.07.2 stable release
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply