Page 1 of 1

Move Image Views

Posted: 2014-07-25T05:08:56-07:00
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...

Re: Move Image Views

Posted: 2014-07-25T10:16:16-07:00
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.

Re: Move Image Views

Posted: 2014-07-25T10:31:51-07:00
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.

Re: Move Image Views

Posted: 2014-07-25T22:36:45-07:00
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?

Re: Move Image Views

Posted: 2014-07-25T22:43:48-07:00
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.

Re: Move Image Views

Posted: 2014-07-25T23:00:28-07:00
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...?

Re: Move Image Views

Posted: 2014-07-26T10:17:59-07:00
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.