How to achieve Skew of a image or a document in which text is written ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
shubhra
Posts: 7
Joined: 2019-05-18T08:50:51-07:00
Authentication code: 1152

How to achieve Skew of a image or a document in which text is written ?

Post by shubhra »

Hi Fred,

I would like to know the right set of command to achieve skew of an image/document?

Kindly suggest some commands with examples of the image/document?

It would be highly appreciated

Best Regards,
Shubhra
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to achieve Skew of a image or a document in which text is written ?

Post by fmw42 »

I have moved this to the User's forum since it has nothing to do with my scripts.

See Imagemagick -shear at https://imagemagick.org/script/command- ... .php#shear
shubhra
Posts: 7
Joined: 2019-05-18T08:50:51-07:00
Authentication code: 1152

Re: How to achieve Skew of a image or a document in which text is written ?

Post by shubhra »

Hi Fred,

Thank you!
I will be more glad if you could give me the exact command and the example image, which has been skewed. Please!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to achieve Skew of a image or a document in which text is written ?

Post by fmw42 »

The command was in the link and the image is one of the Imagemagick internal images (named logo: with a colon). Just replace logo: with your image.suffix and it should work. Try simply

Code: Select all

convert logo: -background black -shear 20x0 logo-sheared.png
Post Reply