downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::setImagePage> <Imagick::setImageOpacity
[edit] Last updated: Sat, 25 May 2013

view this page in

Imagick::setImageOrientation

(PECL imagick 2.0.0)

Imagick::setImageOrientationEstablece la orientación de la imagen

Descripción

bool Imagick::setImageOrientation ( int $orientation )

Establece la orientación de la imagen.

Parámetros

orientation

Una de las constantes de orientación

Valores devueltos

Devuelve TRUE en caso de éxito.



add a note add a note User Contributed Notes Imagick::setImageOrientation - [1 notes]
up
0
orrd101 at yahoo dot com
3 months ago
Be aware that Imagick::setImageOrientation() doesn't actually rotate the image, it just changes the EXIF rotation info that will be saved with the image. In some cases that may be what you want to do, but  if you're trying to rotate an image, this probably isn't the way you want to do it. The problem with relying on the EXIF rotation info is that many web browsers ignore and some image viewing software ignore the EXIF information and don't auto-rotate it automatically.  This function is best used to correct EXIF rotation information just before saving an image.

To actually rotate an image, use Imagick::rotateImage(). 

And then maybe use this function to save the correct EXIF orientation data.  For example: $image->setImageOrientation(imagick::ORIENTATION_TOPLEFT);

 
show source | credits | sitemap | contact | advertising | mirror sites