• 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

Don't generate thumb

sunsetbld

Chevereto Member
Hello everybody 🙂

Thanks for the script, great job !

Here is my request : I don't need thumbs ! how not to generate thumbnails ??

Thanks in advance for your help
 
Hi Sunset, sadly the script needs the thumbs for the file manager (admin). You can hide the thumbs from the uploaded page if that works for you.
 
Hi Rodolfo 🙂

Of course, I understand. Thanks for that !

I do have another question (I don't know if I can in the same topic) but here it is :
Is it possible to define by default a desired width for everyone (I'd like that any picture is loaded with a 640px width) ? How produce that ?

Thanks again !
 
Every image forced to 640px even those who are smaller tha 640px or just those that are above 640px?
 
Open includes/classes/class.upload.php and replace this:

PHP:
            // Resize?
            if(check_value($this->resize_width)) {
                $this->ImageResize = new ImageResize($this->working, $this->working, $this->resize_width);
                if(check_value($this->ImageResize->error)) {
                    $this->error = $this->ImageResize->error;
                    return false;
                }
            }

With this:
PHP:
            // Resize?
            $info = get_info($this->working);
            if($info['width']>640) {
                $this->resize_width = 640;
            }
            if(check_value($this->resize_width)) {
                $this->ImageResize = new ImageResize($this->working, $this->working, $this->resize_width);
                if(check_value($this->ImageResize->error)) {
                    $this->error = $this->ImageResize->error;
                    return false;
                }
            }
 
Hi Rodolpho 🙂

Im' testing the version 3.8.8.
And same request like above.
Would it be possible for any picture to be loaded with a 640px width ? (Just those that are above 640px !)

I think its' in : app/lib/classes/class.upload.php

Many thanks in advance for your help

Best
 
Back
Top