• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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