montessori-ressources / web

Montessori Ressources full stack webapp based on PHP Symfony
MIT License
2 stars 0 forks source link

Missing nomenclature 'accessoire de cuisine' et 'bureau' #101

Open julbrs opened 4 years ago

julbrs commented 4 years ago

Describe the bug Sonia add some nomenclature but she can't see it To Reproduce Steps to reproduce the behavior:

  1. go there https://alpha.montessori-ressources.net/nomenclature
  2. search for cuisine
  3. wait for the nomenclaure
  4. very long time to show the little images
  5. cant download the pdf (error max exec time)

Expected behavior

  1. faster time to show the little images
  2. can see the pdf

This is linked to big images.

Screenshots:

image

julbrs commented 4 years ago

OK worked a bit on this issue:

We need to think about it:

julbrs commented 4 years ago

Goal is to be able to print at 300dpi max and we know the image size (14cmx14cm). So it represent in pixels around 1650x1650 max.

We can work on the image to resize it to 1650x1650 (keeping aspect ratio)

This lib is doing it https://packagist.org/packages/gumlet/php-image-resize