aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
182 stars 43 forks source link

Error while uploading the image #238

Closed pamirsawar closed 2 years ago

pamirsawar commented 2 years ago

Environment

  1. Version (2022.07.2)
  2. Integration (Laravel)
  3. System (Windows)

Describe the bug While trying to upload image in the media tab it shows and error for some images.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'catalog>products>'
  2. Click on 'product'
  3. Scroll down to 'media tab' and upload an picture (it happens for mostly for .png files)

Screenshot_16

aimeos commented 2 years ago

Images are converted to WEBP format by default and there seems to be PNG features that are not supported by WEBP.

There seems to be a workaround when adding imagepalettetotruecolor() for GD. Alternatively, installing php-imagick extension should fix the problem too.

aimeos commented 2 years ago

You can try aimeos/aimeos-core:2022.07.x-dev which contains now the imagepalettetotruecolor() call.