When I attempt to upload a large jpg image to the file manager in expression engine, I receive the following message
“Cannot Upload File. Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.”
However, this does not occur with png images or very small jpg images. All files and folder have had file permissions set to 777 and 655 respectively, so I am pretty sure it isn’t a file permission error especially since some image files have been able to write to the upload/_thumbs folder. Also, the php memory upload is set to 40M (I am using docker) and the memory limit is 1MB, so I do not think this is necessarily the problem. It seems to be caused by expression engine’s inability to create a thumbnail for large jpg images, so what does expression engine use to process jpg images into thumbnails? What could be causing this issue?
Thanks to anyone who may be able to help with this issue.
I solved the issue. In the end, it was an issue with Docker. When I set up the Docker file, I configured gd (graphics directory) as follows
RUN docker-php-ext-configure gd \
But I needed to include an extra script that included jpeg images.
RUN docker-php-ext-configure gd –with-freetype –with-jpeg \
So, expression engine was unable to upload jpeg because gd was unable to create thumbnails since gd takes care of this process.