Sign in

regenerate thumbnails error

  • This topic has 5 replies, 2 voices, and was last updated 1 year, 9 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6008
    Avatar photodeimos

    I’m running the appimage of v.0.38.2 (build 14204) on ubuntu 20.04.

    /tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/plugin-resize/dist/modules/resize.js:26
        throw new Error('Invalid settings specified for the resizer.');
        ^
    
    Error: Invalid settings specified for the resizer.
        at Resize.initialize (/tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/plugin-resize/dist/modules/resize.js:26:11)
        at new Resize (/tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/plugin-resize/dist/modules/resize.js:18:8)
        at Jimp.resize (/tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/plugin-resize/dist/index.js:76:24)
        at Jimp.scale (/tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/plugin-scale/dist/index.js:35:12)
        at Jimp.scaleToFit (/tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/plugin-scale/dist/index.js:63:12)
        at Jimp.<anonymous> (/tmp/.mount_Publiiu6M0tS/resources/app.asar/back-end/image.js:411:35)
        at Timeout._onTimeout (/tmp/.mount_Publiiu6M0tS/resources/app.asar/node_modules/@jimp/core/dist/index.js:264:25)
        at listOnTimeout (internal/timers.js:549:17)
        at processTimers (internal/timers.js:492:7)
    

    I changed the Website Speed settings in the Photo theme to enable Responsive Images. I have 36 posts and 760 images. The images are broken down as follows:

    find ./ -type f | cut -d"." -f3 | sort | uniq -c
          1 gif
          2 jpeg
        682 jpg
          8 JPG
         47 png
         20 PNG

    “Regenerate Thumbnails” gets to 2% and hangs forever, cpu stops getting used, etc.

    The last lines in the regenerate-process.log are:

    (i) Featured image detected (DSC02653-Pano.jpg) 22
    JIMP SCALE TO FIT 749  x  -1
    JIMP SCALE TO FIT 480  x  -1
    JIMP SCALE TO FIT 300  x  -1
    JIMP SCALE TO FIT 1200  x  -1
    JIMP SCALE TO FIT 2560  x  -1
    JIMP SCALE TO FIT 1600  x  -1
    PROGRESS: 15 672
    (i) Featured image detected (DSC02662.jpg) 23
    JIMP SCALE TO FIT 2560  x  -1

    The last file mentioned there is:

    11M May 26 2020 DSC02662.jpg

    and loads fine in browser, in image viewers, and thumbnail works fine.

    #6029
    Avatar photoTomasz Dziuda

    Hi,

    Could you try to decrease a size of this image? I suppose that 11MB image can be too much for the JIMP library :/

    --
    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!

    #6221
    Avatar photodeimos

    Is the bug in JIMP or something else? On ubuntu 20.04 or 21.04, it seems I’m just stuck with any image regeneration/insertion for fairly large images (1600×1600 and larger). Anything I can do to help? It doesn’t matter if I use a .deb or a .AppiImage version of publii. This is Publii version 0.38.3.

     

    Today’s error is on a 1600×1600 image:

    /opt/Publii/resources/app.asar/node_modules/@jimp/plugin-resize/dist/modules/resize.js:26
        throw new Error('Invalid settings specified for the resizer.');
        ^
    
    Error: Invalid settings specified for the resizer.
        at Resize.initialize (/opt/Publii/resources/app.asar/node_modules/@jimp/plugin-resize/dist/modules/resize.js:26:11)
        at new Resize (/opt/Publii/resources/app.asar/node_modules/@jimp/plugin-resize/dist/modules/resize.js:18:8)
        at Jimp.resize (/opt/Publii/resources/app.asar/node_modules/@jimp/plugin-resize/dist/index.js:76:24)
        at Jimp.scale (/opt/Publii/resources/app.asar/node_modules/@jimp/plugin-scale/dist/index.js:35:12)
        at Jimp.scaleToFit (/opt/Publii/resources/app.asar/node_modules/@jimp/plugin-scale/dist/index.js:63:12)
        at Jimp.<anonymous> (/opt/Publii/resources/app.asar/back-end/image.js:413:35)
        at Timeout._onTimeout (/opt/Publii/resources/app.asar/node_modules/@jimp/core/dist/index.js:264:25)
        at listOnTimeout (internal/timers.js:549:17)
        at processTimers (internal/timers.js:492:7)
    

     

    #6222
    Avatar photodeimos

    FWIW, sharp works on modern linux per the installation instructions.

    #6255
    Avatar photoTomasz Dziuda

    @deimos – unfortunately I was unable to properly build Publii with sharp on linux – I have tried many times and some builds works other not, giving errors which are extremely hard to debug. That’s why we have decided to abandon sharp on the linux build at this moment – we have lost too much time to make it working.

    --
    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!

    #6300
    Avatar photodeimos

    @deimos – unfortunately I was unable to properly build Publii with sharp on linux – I have tried many times and some builds works other not, giving errors which are extremely hard to debug. That’s why we have decided to abandon sharp on the linux build at this moment – we have lost too much time to make it working.

    Thanks for the honesty and sharing of issues. I suppose using native imagemagick/ffmpeg as found on system creates a whole set of other issues.

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