Prestashop: Lack of full high DPI support when regenerating images in admin panel

Created on 16 Jun 2020  路  6Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

When setting the option "Generate high resolution images" and generating some image type with "Erase previous images" set to NO, the high resolution images are not generated.

Expected behavior

Prestashop should generate missing images without a need to delete all of them.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Have a product with a set of images already generated (without high res images)
  2. Go to image settings and set "Generate high resolution images" to YES
  3. Perform thumbnail regeneration but with "Erase previous images" set to NO
  4. Verify that the high res thumbnails are not generated

Additional information

The error is in the AdminImagesController, when generating images it only checks if the low res images exist, if they exist it does not do any regenerating even if the high res images are not there.

  • PrestaShop version: 1.7.6.5 and probably also 1.7.7
1.7.6.5 BO Bug Fixed Image Minor good first issue

All 6 comments

Thanks for opening this issue! We will help you to keep its state consistent

Hi and thanks for your report.

You're right, there is a missing check :)
If you know exactly what to do, feel free to open a pull request :+1:

Kind regards

was fixed here I belive https://github.com/PrestaShop/PrestaShop/pull/16097
But it was only about a year ago so it maybe have not found itself into the release versions yet :)

@khouloudbelguith Could you check if this issue is fixed on 1.7.7.x ?

Hi @marionf,

I did not manage to reproduce the issue with 1.7.7.x branch.
I attached a screen record
https://drive.google.com/file/d/1NJkMRRwtMlUeqoX0u8C-VVtJPKlJLqAz/view?usp=sharing
I close the issue since it is fixed.

Thanks!

Great to hear, thank you @khouloudbelguith

Was this page helpful?
0 / 5 - 0 ratings