Move Image Views

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
pranav
Posts: 16
Joined: 2014-05-20T23:41:16-07:00
Authentication code: 6789

Move Image Views

Post by pranav »

HI All,
I am playing with Imagemagick, have done to generate 3d images. with the examples.
now I am trying to rotate 3D view in every direction, e.g want to show its top view, its bottom view, right view, left view.

Dont know how to start? Can Any one help to how can i do that?

Sample image is uploaded here

https://www.dropbox.com/s/tnmeo09j9h7srpp/1.png
https://www.dropbox.com/s/hezaj50k4sdvbmj/2.png


As I want to do is in image 2, if i want to move left to right or right to left, it should be rotate on pole 2
if i want to move top to bottom or bottom to top, it should be rotate on pole 1

Thanks in advance...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Move Image Views

Post by fmw42 »

You do not say what version of IM you are using nor what platform.

If on Linux/MacOS or Windows with Cygwin, see my script, 3Dbox, at the link below.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Move Image Views

Post by snibgo »

I happen to be working on that at this very moment.

When used on Cygwin, the line in 3Dbox that says

Code: Select all

tmpdir="/tmp"
should be changed to either

Code: Select all

tmpdir="./tmp"
or

Code: Select all

tmpdir="C:/tmp"
or any path that is either relative, or absolute with drive-letter-colon, or

Code: Select all

tmpdir="`cygpath -w $TEMP`"
There will be a full write-up about IM and Cygwin on my pages, probably in a week or so.
snibgo's IM pages: im.snibgo.com
pranav
Posts: 16
Joined: 2014-05-20T23:41:16-07:00
Authentication code: 6789

Re: Move Image Views

Post by pranav »

I am extremely sorry for that,
ImageMagick-6.8.9-Q8, win 7 64bit.. :)

By the one thing, the changes in version may cause problem in output?

and also i have those script downloaded once, but not able understand as linux commands, can u have this script in PHP?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Move Image Views

Post by fmw42 »

That version of IM should be fine, unless there is some particular bug that I do not know about. My concern would be if you had a really old version of IM, especially if it was a version before I created that script. Also some issues with older versions of IM may cause problem, though I tried to work around most of them. See viewtopic.php?f=4&t=21269

The main issue is getting Cygwin configured with all the needed unix functions, especially the unix calculator called bc. Also there are some file and path naming issues that user snibgo is working on to create a good set of documentation regarding running these unix scripts under Cygwin.

I do not use Cygwin. I am on a Mac. So I cannot offer much help regarding the path and filename issues.

According to other Cygwin users, if everything is configure correctly and the script modified correctly and the proper naming and path conventions used, then, they report that my scripts do work. That is all I can tell you.
pranav
Posts: 16
Joined: 2014-05-20T23:41:16-07:00
Authentication code: 6789

Re: Move Image Views

Post by pranav »

Yeah,
You are right, I really appreciate your efforts, as well as your time towards the issues. This forum is amongst the best forum. Probably you are able to find out answers of all the issues, my experience says. Keep it uppppp.....

Anyways,

Can any one have any example regarding my issue, from the above attachments in PHP, specially...?
Last edited by pranav on 2014-07-27T21:51:27-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Move Image Views

Post by fmw42 »

If you are running in PHP with unix, then my scripts should work fine. I have Pointers on my web site home page for what needs changing. You will need to use the PHP exec() function. My scripts do not work with Imagick PHP.
Post Reply