Upload a gif image to product using backend

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!
awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

Upload a gif image to product using backend

Post by awaidqureshi » 23 Jan 2019, 06:55

I tried to upload a gif image to product using backend but on upload the image is coverted to simple image with no animation. Please give some suggestion on how to resolve this.

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

Re: Upload a gif image to product using backend

Post by aimeos » 23 Jan 2019, 14:36

This may work in 2018.10 and you need the latest version of the Aimeos core. Execute "composer update" first to get

Code: Select all

aimeos/aimeos-core: 2018.10.14
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Erik
Posts: 3
Joined: 05 Feb 2019, 16:30

Re: Upload a gif image to product using backend

Post by Erik » 05 Feb 2019, 16:34

I'm working in 2018.10 and am experiencing the same issue. I am trying to find the location where I can turn off the resizing of images in general, as to surpass this problem as it seems that .gifs that I upload get boiled down to just their first frame. Where can I find this, or is there a way that we can upload .gifs without losing all but the first frame?

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

Re: Upload a gif image to product using backend

Post by aimeos » 06 Feb 2019, 10:48

We've already added some code to prevent scaling:
https://github.com/aimeos/aimeos-core/c ... b87c2d2925

For that, no maxwidth and maxheight parameters for images must be set which isn't the case by default:
https://github.com/aimeos/aimeos-larave ... t.php#L271

You can find the whole image processing here:
- https://github.com/aimeos/aimeos-core/b ... andard.php
- https://github.com/aimeos/aimeos-core/t ... edia/Image
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

Re: Upload a gif image to product using backend

Post by awaidqureshi » 08 Feb 2019, 05:42

aimeos wrote:We've already added some code to prevent scaling:
https://github.com/aimeos/aimeos-core/c ... b87c2d2925

For that, no maxwidth and maxheight parameters for images must be set which isn't the case by default:
https://github.com/aimeos/aimeos-larave ... t.php#L271

You can find the whole image processing here:
- https://github.com/aimeos/aimeos-core/b ... andard.php
- https://github.com/aimeos/aimeos-core/t ... edia/Image


I have tried with these file i m also using aimeos 2018.10 butt no changes.
Still Its saving .gif images without animation

Post Reply