Liipimaginebundle: Problem with thumbnail from to wide pictures

Created on 18 Jun 2018  路  4Comments  路  Source: liip/LiipImagineBundle

I get error if i make thumbnails from pictures if they are to wide in there original size. Like to make thumbnail from picture 2.500 x 1.500 pixel is possible. But from 5.500 x 3.500 pixel i get error.
This has nothing to do with the data-size. From small 5.5 MB is o.k. , but from big 2,5 MB is not working.

Is this a problem of the php setting for the script runtime?

ERROR:

(1/1)聽OutOfMemoryExceptionError: Allowed memory size of 134217728 bytes exhausted (tried to allocate 48771073 bytes)
--
in聽Image.php (line 617)


All 4 comments

memory_limit -1 is fixing my problem.

This answer is not a solution to the problem, there are many reasons why it's not always possible to set memory limit to -1 ...

@qlerebours you are welcome to post other solutions if you find any. its probably an issue with the imagine library, not the LiipImagineBundle.

The only solution I found is to restricting image upload to files lighter than 1Mo... I use the bundle with Sylius. 1 Mo is enough for e-shop pictures

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dariuszp picture dariuszp  路  4Comments

pamil picture pamil  路  6Comments

Aerendir picture Aerendir  路  3Comments

chiqui3d picture chiqui3d  路  3Comments

weyandch picture weyandch  路  5Comments