bigbite / wp-cypress

WordPress end to end testing with Cypress.io.
MIT License
86 stars 18 forks source link

Thumbnails Not Generated After Image Upload #129

Open alvinchevolleaux opened 8 months ago

alvinchevolleaux commented 8 months ago

Describe the bug Image thumbnails are not generated when images are uploaded to the media library regardless of any registered thumbnail sizes.

To Reproduce Steps to reproduce the behavior:

  1. Start wp-cypress environment
  2. Upload image via image library after starting wp-cypress
  3. Browse uploads directory and note that no thumbnails are generated

Expected behavior I would expect several thumbnails to be generated based on those from the theme I am using.

Screenshots image image

Desktop (please complete the following information):

Additional context Browsing through the source it seems wp-cypress only uses gd https://github.com/bigbite/wp-cypress/blob/master/lib/templates/dockerfile.ejs#L4-L5. The WordPress Dockerhub images use imagick https://github.com/docker-library/wordpress/blob/4d5bd0cc496f7e3976a8535dd670ca6d3763af1d/latest/php8.0/apache/Dockerfile#L48-L49 and other WordPress Docker images use gmagik.

alvinchevolleaux commented 6 months ago

@jasonagnew @ampersarnie I could create a PR when I've got some time to try and address this issue. Let me know if that's alright and I'll try to put something together.