
18/04/2007, 09:17
|
| | Fecha de Ingreso: abril-2005
Mensajes: 323
Antigüedad: 19 años, 11 meses Puntos: 0 | |
Re: imagenes tif a jpg/gif/png Ya lo conseguí con PHP, baje una libreria dll que trae muchas funciones entre ellas esta.
function tiff2jpg($file) {
$mgck_wnd = NewMagickWand();
MagickReadImage($mgck_wnd, $file);
$img_colspc = MagickGetImageColorspace($mgck_wnd);
if ($img_colspc == MW_CMYKColorspace) {
echo "$file was in CMYK format<br />";
MagickSetImageColorspace($mgck_wnd, MW_RGBColorspace);
}
MagickSetImageFormat($mgck_wnd, 'JPG' );
MagickWriteImage($mgck_wnd, str_replace('.TIF', '.jpg', $file));
}
Problema resuelto. |