• I am running into an issue with front-end cropping of larger images on my site.

    Small files (Under 250kb) upload without problems and crop quickly.

    Medium files (250kb-3MB) upload slower and crop slowly without problems.

    Large Files (Above 3MB) upload slow and I receive a cropping error.

    I checked my site’s logs, and it had said the request timed out – I updated the times from 60s to 300s to accommodate for the larger files, and the request still errors after 85-90s.

    Does this plugin have a max file size? Is there anything I can do to speed up the computing power? My users are uploading high-resolution images for printing. Is there another way they can upload and then have the plugin crop the file?

    Let me know if you require additional information to answer this.

    Thanks in advance, Avery

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author joppuyo

    (@joppuyo)

    Hey Avery,

    This plugin uses standard WordPress APIs for cropping images so it has similar performance as built-in WordPress image editing functions.

    Slow performance when dealing with large images can be caused by a server that has too little CPU performance or not enough memory.

    If possible, I would recommend looking into upgrading your web server to a larger one.

    One additional thing that comes to mind is the big image threshold introduced in WordPress 5.3. This feature adds additional processing when cropping the image and generating a new attachment.

    If you have WordPress version later than 5.3, you can use this plugin to disable this feature.

    • This reply was modified 2 years, 10 months ago by joppuyo.
    Plugin Author joppuyo

    (@joppuyo)

    If I understand correctly, you will only need the full size image and any thumbnails?

    That’s because WordPress generates a lot of different thumbnails and many themes add even more of them which slows down the cropping process.

    If you upload an image using the form, could you tell me what other images are created in the uploads directory?

    I think I can figure out some code to disable the generation of these extra thumbnails.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘slow file upload and image crop error on bigger files’ is closed to new replies.