You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#114598 Force a resize on upload

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 05 September 2023 16:54 BST

Rixters
Hi,

I'm trying to force a resize of images that are to large. I created a custom profile for frontend editing and set the right accordingly. The media manager icon is disabled in the editor. So only JCE custom field or intro images file upload can be used. In the Editor Parameters under Filesystem I configured the options as followed:



Either if the resize options are hidden or shown and the option is checked, the resize doesn't work.





What is the best wat to force a resize of images that are too large?

Attachments

Ryan
Is your server running PHP Imagick? You can check this in System -> System Information -> PHP Information.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Rixters
imagick is not available on my server as I'm on PHP 8.2 on Windows. Looks like imagick is not available yet. for PHP 8.1 is the latest. Do I need imagick for this to work?

Rixters
I installed imagick and added php 8.1 still the resize is not executed.

Rixters
For some strange reason it works on my live server but not on my local machine. So fixed for now I guess...

Ryan
The reason it wasn't working without IMagick is because of the size of the file you are uploading. PHP GD2 (which is probably what your server had available for image processing) uses a lot of memory for processing, so a pre-resize calculation is done to see if there is sufficient memory available, and if not, then resizing is skipped.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.