PHP - TRATAR IMAGENES

 
Vista:

TRATAR IMAGENES

Publicado por javi (9 intervenciones) el 20/09/2007 11:15:46
BUENOS DÍAS, ESTOY TRABAJANDO CON PHP Y TODO ME FUNCIONA SIN PROBLEMAS. EL CASO ES QUE QUIERO QUE AL SUBIR UNA FOTO AL SERVIDOR, PUEDA SACAR APARTE DE ESTA, OTRAS DOS COPIAS CON TAMAÑOS DIFERENTES PARA HACER ICONOS Y COSAS ASI, SOBRE TODO SIN PERDER CALIDAD.

¿ALGUIEN QUE ME DIGA COMO HACERLO?
GRACIAS POR ANTICIPADO
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:TRATAR IMAGENES

Publicado por Nicolás (154 intervenciones) el 20/09/2007 13:41:22
Deberías utilizar la funcion imagecreatefromjpeg

http://ar2.php.net/manual/es/function.imagecreatefromjpeg.php

Suerte
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:TRATAR IMAGENES

Publicado por Nicolás (154 intervenciones) el 20/09/2007 14:19:08
Me quedó un poco incompleto el post.
Si convinas las funciones

imagecreatefromjpeg
imagecopyresized
getimagesize

conseguirás lo que buscas.

Suerte
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:TRATAR IMAGENES

Publicado por javi (9 intervenciones) el 21/09/2007 09:17:18
Gracias Niolas, las he estado usando y me funcionan, pero pierden mucha calidad y en algunos casos resultan muy diferentes al original en cuanto a colores y eso. Se puede mejorar??
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar