Insert/Edit Image and Insert/Edit Gallery will not process 5000 x 5000px image
- This topic has 9 replies, 4 voices, and was last updated 1 week, 4 days ago by .
- August 19, 2021 at 12:41 pm #6183GoFaster
I am unsure whether this is a bug or by design. There appears to be a consistent issue with Insert/Edit Image and Insert/Edit Gallery where Publii will not process a 5000 x 5000px image. An image is attached below.
Can someone tell me whether there is a maximum file size for images in Publii, or whether they can insert this image using their own version of the software? This effects v.0.38.2 (build 14204).August 19, 2021 at 12:42 pm #6184August 19, 2021 at 1:14 pm #6187t79
The image is now 2560×2560 pixels :/August 19, 2021 at 1:21 pm #6188t79
a 5000×7486 pixel jpg at 14MB did not have any problems here.August 19, 2021 at 1:42 pm #6189GoFaster
Thanks for the feedback t79.
The weird part is once the image is selected to load via Insert/Edit Image or Insert/Edit Gallery, literally nothing happens. There’s no image. And there’s nothing in rendering-errors.log or any other error log.
I will upgrade to the latest version of the software to see if the problem remains.August 19, 2021 at 3:07 pm #6190GoFaster
Upgraded to the latest version, still none of my large black and white images are loading into Publii. And still no error logs.
What’s the best way to proceed to debug this type of issue?August 23, 2021 at 7:30 pm #6205Tomasz Dziuda
Which OS are you using? On Linux only JIMP image resizing engine is available and it is possible that it stucks with such a big image.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!September 2, 2021 at 1:14 am #6235GoFaster
<h1>Failure Information (for bugs)</h1>
<h2>Steps to Reproduce</h2>
- Create an image
- Try to resize it to 5000×5000
- Watch it exit silently
That’s a pity. It appears to be a problem with .jpg’s and .gif’s.
What’s Publii’s policy in this case? Are you pushing for a bug fix, or investigating different libraries?
This is problematic if you are selling themes with photographic galleries.September 3, 2021 at 11:09 am #6253Tomasz Dziuda
Sorry but in this case the only solution is waiting for a fix in the JIMP library. Currently we have no plans to do additional research and try to add another library, especially due such edge-case situation. It is too much work and it is a very specific situation.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!September 6, 2021 at 10:55 pm #6301deimos
I host a photo blog with publii, and I really want the high-quality images as the source, mostly raw off the camera type images (24 mb per image). Due to the JIMP issue, I ended up writing a quick shell script to detect image sizes over 2500×2500 and re-scaling them down to 2500×2500 processing. Not a real solution, but a working kludge. It just uses `file` and `convert` (from imagemagick) to resize the files.
- You must be logged in to reply to this topic.