Hi,
I don't want to rotate the image, but to "make" it horizontal by adding additional black (or in the example red) area to the image. The image still has to be vertical but the image format horizontal
Main Topics
Browse All TopicsHi,
I want to convert an Image from vertical format into horizontal. How can I do that? I tried it using RMagick with some quite funny results. You can find it in the Attachment to this posting.
As you can see, the position of the vertical image is quite in the center of the "large horizontal" image, but the image looks quite funny. How what do I have to change im my code?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
That little video will show you, what I want to do: http://rootix.de/screencas
Hi llord, I put a script in snippet code, write in php. I use some functions of gd library and others from imagick.
Is better you verify first if your server have installed imagick extension, if not the script don't work, and the solution is contact the support for they install imagick.
In my server work very well, like you can see in attach image.
Good luck.
Regards, JC
Business Accounts
Answer for Membership
by: joaochagasPosted on 2009-09-14 at 03:45:29ID: 25324187
hi @llord, usualy i use imagemagick for rotate my images.
i use the comand -rotate degrees (degrees can be like 90 or -90, that depende if you want rotate for left or right).
use: convert image.jpg -rotate -90 image.jpg
you have to call the imagemagick (php) with the comand 'exec'.
the path for convert you have to cuntact your hosting support for they tell you.
i hope this information was usuful.
regards, jc