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:
And so where i can download the new nightly build?Rodolfo said:Ok, i just did it. Also i fix a major issue with invalid resize values.
But if i download the last nightly build on the home page i'll have the last fix you made?Rodolfo said:Oh yes.. multi-upload is a concurrent suggest. Don't worry, i have that on mind.
Garret said:But if i download the last nightly build on the home page i'll have the last fix you made?Rodolfo said:Oh yes.. multi-upload is a concurrent suggest. Don't worry, i have that on mind.
$allow_over_resize = false; // true: peremite que se redimensione por sobre el ancho de la imagen - false: no redimensiona sobre el ancho de la imagen
if (!empty($resize)) {
if(preg_match("/[^0-9\.]/",$resize)) { // Queremos solo numeros!
$errormsg = 'debes introducir solo el valor numerico del ancho deseado';
$titulo = 'Imagen subida (pero no redimensionada)'.ESP_TITULO;
$spit = true;
$red = 2;
} else {
if ($resize<=$higres && $resize>=$lowres) {
$new_alto = round($resize*$alto/$ancho);
// Seteamos el nuevo alto y ancho
unset($ancho);
unset($alto);
$ancho = $resize;
$alto = $new_alto;
$red = 1;
} else {
$errormsg = 'el resimensionamiento solo funciona entre los valores 16 y 1280 (pixels)';
$titulo = 'Imagen subida (pero no redimensionada)'.ESP_TITULO;
$spit = true;
$red = 2;
}
}
}
if (!empty($resize)) {
if(preg_match("/[^0-9\.]/",$resize)) { // Queremos solo numeros!
$errormsg = 'debes introducir solo el valor numerico del ancho deseado';
$titulo = 'Imagen subida (pero no redimensionada)'.ESP_TITULO;
$spit = true;
$red = 2;
} else {
if($allow_over_resize==false && $resize>$ancho) {
$errormsg = 'el redimensionamiento no trabaja en valores superiores al ancho de la imagen original ('.$ancho.'px)';
$titulo = 'Imagen subida (pero no redimensionada)'.ESP_TITULO;
$spit = true;
$red = 2;
} else {
if ($resize<=$higres && $resize>=$lowres) {
$new_alto = round($resize*$alto/$ancho);
// Seteamos el nuevo alto y ancho
unset($ancho);
unset($alto);
$ancho = $resize;
$alto = $new_alto;
$red = 1;
} else {
$errormsg = 'el resimensionamiento solo funciona entre los valores 16 y 1280 (pixels)';
$titulo = 'Imagen subida (pero no redimensionada)'.ESP_TITULO;
$spit = true;
$red = 2;
}
}
}
}
Garret said:I see in the new nb1.4 you put this mod.
But i am interested in width wich mustn't be bigger than 620px. I don't care about height, because i think imagemagick thinks the rest.
I am totally noob with coding php, so pls you can tell me where to modify?
Thanks a lot!!!
And then i see also the new img sources. But how i can modfy them? Img sources should be images with any word π
$lowres = '16'; // Minimo ancho a redimensionar
$higres = '1280'; // Maximo ancho de redimension
gonzalarcon said:About the new img sources, this can be edited with Adobe Fireworks CS3/CS4 (i think with photoshop can't be edited :/)
π
I have set my config.php like this:Rodolfo said:In config.php there is the min and max resize values:
PHP:$lowres = '16'; // Minimo ancho a redimensionar $higres = '1280'; // Maximo ancho de redimension
$lowres = '15'; // Minimo ancho a redimensionar
$higres = '620'; // Maximo ancho de redimension
Ahhh that's why... because i am under linux and i use gimp. πRodolfo said:gonzalarcon said:About the new img sources, this can be edited with Adobe Fireworks CS3/CS4 (i think with photoshop can't be edited :/)
π
Yes, they are Fireworks CS4.
I am totally noob about php coding πRodolfo said:If you want to force the maximun width of the uploaded images, you must run the resizing if the image is over the max width.
Try to see engine.php and do some π