Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Image rotation with GD: counter or clockwise?

by LanX (Saint)
on Feb 23, 2021 at 13:43 UTC ( [id://11128692]=note: print w/replies, xml ) Need Help??


in reply to Image rotation with GD: counter or clockwise?

I don't have GD installed sorry. But ...

  • ... positive rotations in math are anti-clockwise. Probably a glitch in the docs?
  • ... $ARGV[1] ? $ARGV[1] : 90; are you sure you want this? 0 is false, I'd rather //
Update

From the underlying docs at: https://libgd.github.io/manuals/2.3.1/files/gd-c.html#gdImageCopyRotated

The area is counter-clockwise rotated using nearest-neighbor interpolation.

I'll try to contact the author for clarification. (Update: email sent)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found