note 101251 deleted from function.imagerotate by cmb
| From: | cmb@php.net | Date: | Mon, 22 Aug 2016 09:39:06 +0000 |
| Subject: | note 101251 deleted from function.imagerotate by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206358@lists.php.net to get a copy of this message | ||
Note Submitter: superzouz at hotmail dot com
----
If you're having trouble rotating images through this function, please note that you can rotate
images through CSS. As imagerotate() seems to remove image transparency, I resorted to CSS rotate.
Here is an example of CSS code that should work across most browsers:
img.rotated90 {
/* CSS3 then proprietary code */
rotation: 90deg;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
}