[SOLVED] Help with thumbnails size modification, square thumbs to wide thumbs
|
damapema
![]()
Joined: 2009-10-24
Posts: 6 |
Posted: Mon, 2009-10-26 19:30
|
|
Hello, please, how can I change these lines in the file SquareThumbToolkit.class to make the thumbnails rectangular, wider than high, such that they are not of 122 * 122 but 122 * 85, any information or track, I would, thanks in advance and again sorry for my bad English.
$args = ($width > $height)
? array( 100*(1-$height/$width)/2, 0, 100*$height/$width, 100 )
: array( 0, 100*(1-$width/$height)/2, 100, 100*$width/$height );
list ($ret, $mimeType, $subContext) = $toolkit->performOperation(
$mimeType, 'crop', $sourceFilename, $destFilename, $args, $subContext);
if ($ret) {
return array($ret, null, null);
}
MyInfo URL de Gallery = http://www.electrafm.com/video/main.php Versión de Gallery = 2.3 núcleo 1.3.0 API = Núcleo 7.54, Módulo 3.9, Tema 2.6, Incrustado en 1.5 Versión de PHP = 5.2.9 cgi-fcgi Servidor Web = Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Base de Datos = mysqli 5.0.81-community-log, lock.system=flock Herramientas = Getid3, LinkItemToolkit, NetPBM, Thumbnail, Ffmpeg Aceleración = none/0, none/0 Sistema Operativo = Linux host252.hostmonster.com 2.6.28-10.7.intel.E1000E.BHsmp #1 SMP Thu Aug 13 21:45:18 MDT 2009 x86_64 Tema (skin) por defecto = matrix gettext = habilitado Fichero de idioma = es_MX Buscador = Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Filas en la tabla GalleryAccessMap = 11 Filas en la tabla GalleryAccessSubscriberMap = 9 Filas en la tabla GalleryUser = 2 Filas en la tabla GalleryItem = 8 Filas en la tabla GalleryAlbumItem = 1 Filas en la tabla GalleryCacheMap = 0
Sincerely David Perez |
|
| Login or register to post comments |


Posts: 6
Well, I got what I wanted, the final code for this is:
SquareThumbToolkit Line 108
I hope someone will serve this because I had been looking for quite some time....
If someone wants to improve it no problem.
David P.