• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

resize image (force always resize)

Status
Not open for further replies.

daddeaux

Chevereto Member
I really like your software. I have played around with a little the last few days and have a question.

I see the in the config file the max MB size and resize setting. Can I hard code the resize setting so as to have all images resized to 640 px or so?

thanks
 
Yes, you can force to always resize.

Open /upload.php and force the size here:
PHP:
$to_resize = $_POST['resize'];

You can use for instance...
PHP:
$to_resize = 640

You can tell to resize if the user doesn't put the value, or force allways that value, etc.
 
I made the change as shown below..


//$upload->resize_width = $to_resize;
$upload->resize_width = 640;

not the same but it works.

Thanks
 
Status
Not open for further replies.
Back
Top