Sign in

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 .
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #6183
    GoFaster

    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).

    #6184
    GoFaster

    F_10_French_Alps_001_clean_5000px_Q90
    4828kb file.

    #6187
    t79

    The image is now 2560×2560 pixels :/

    #6188
    t79

    a 5000×7486 pixel jpg at 14MB did not have any problems here.

    #6189
    GoFaster

    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.

    #6190
    GoFaster

    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?

    #6205
    Tomasz Dziuda

    Hi,

    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!

    #6235
    GoFaster

    I am using MX Linux. A quick search of the JIMP Javascript Github Issues pulls up:

    https://github.com/oliver-moran/jimp/issues/948
    <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.

     

     

     

     

    #6253
    Tomasz 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!

    #6301
    deimos

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.