i have a problem with long time loading few photos with resolution 4400x4400. it`s take about 4s.
can i do something to speed it up?.
$this->addMediaConversion('1000x1000')
->setManipulations(['w' => 1000, 'h' => 1000])
->performOnCollections('main');
when i remove Converstion its ok. do you have any idea what can i do? i add about 6-8 images * 4s = too long :)
That's some really big file to convert !
What I would try:
I don't think we can speed that up much. In order to manipulate the image PHP needs to load it in it's entirety and perform the manipulations on that loaded image. 4400x4400 equals a shitload of pixels 馃槃
You can speed this up by upgrading the cpu. If your front most request hangs because of the generation of the image you could push the generation to a queue.
@nicolasbeauvais 馃檶
thanks for your very fast answer. can you send me some link how to push it to queue?
Read the documentation on Defining conversions. It mentions how you can perform the manipulation in a queued or non-queued manner.
Most helpful comment
@nicolasbeauvais 馃檶