• 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

Redimensionar ancho imagenes por defecto...

Status
Not open for further replies.

josby

Chevereto Member
Hola, he buscado pero no consigo saber como puedo redimensionar el ancho por defecto de todas las imagenes subidas. Por ejemplo tengo de límite 5 megas para las fotos subidas, pero desearía que automáticamente por defecto si no se indica otra cosa, el ancho deseado al redimensionar la imagen sea de 800 pixels para así evitar guardar todas las fotos con mucho peso.

¿Como se puede hacer? En el config tengo puesto

Code:
$config['max_size_mb'] = 5; // Allowed maximum image size uploaded (MB)

$config['thumb_width'] = 160; // Thumb width in pixels - default: 100
$config['thumb_height'] = 120; // Thumb height in pixels - default: 90

$config['min_resize_size'] = 160; // Min. resize value (pixels)
$config['max_resize_size'] = 800; // Max. resize value (pixels)

A ver si me expliqué bien 😀

Gracias, un saludo!
 
Bueno ya encontré la solución en un tema en inglés que respondió Rodolfo... aquí lo pongo por si alguien está en el mismo caso.

Abrir /upload.php y buscar y cambiar esto:

$to_resize = $_POST['resize'];

Por...

$to_resize = 640 ( o el tamaño que quieras por defecto)
 
Status
Not open for further replies.
Back
Top