Imagemagick Expeert Needed

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
selamlar
Posts: 3
Joined: 2012-11-15T08:18:07-07:00
Authentication code: 6789

Imagemagick Expeert Needed

Post by selamlar »

Hi,

I need a script (php or command line) that creates dynamic images using a source image. Some functions that script must have are;

3d canvas
Crop an image and create multiple images
Effects
Text watermark (dynamic position, font selection, font size, color)
etc...

I will give a live example what i need.

Please send me a pm to discuss further.

Thanks
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Imagemagick Expeert Needed

Post by NicolasRobidoux »

selamlar wrote:...I need a script ... that creates dynamic images using a source image...
My apologies if I'm dense, but can you explain what this means? What is/are dynamic images(s)? Are you somehow referring to http://www.dynamicimagegallery.com/index.html or something like this ?
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Imagemagick Expeert Needed

Post by NicolasRobidoux »

Lo and behold: http://en.wikipedia.org/wiki/Dynamic_imaging
Still pretty vague.
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Imagemagick Expeert Needed

Post by NicolasRobidoux »

Again, maybe I'm having a slow day, but I don't understand "3d canvas" in connection to ImageMagick.
WebGL? ImageMagick does not do 3D modeling.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Imagemagick Expeert Needed

Post by fmw42 »

selamlar wrote:Hi,

I need a script (php or command line) that creates dynamic images using a source image. Some functions that script must have are;

3d canvas
Crop an image and create multiple images
Effects
Text watermark (dynamic position, font selection, font size, color)
etc...

I will give a live example what i need.

Please send me a pm to discuss further.

Thanks

Please post a link to your example so that we can see what you really need. You can upload your mage to any free image hosting site such as dropbox or many others.

3D canvas === is this like http://www.imagemagick.org/Usage/distorts/#box3d
selamlar
Posts: 3
Joined: 2012-11-15T08:18:07-07:00
Authentication code: 6789

Re: Imagemagick Expeert Needed

Post by selamlar »

NicolasRobidoux wrote:My apologies if I'm dense, but can you explain what this means? What is/are dynamic images(s)? Are you somehow referring to http://www.dynamicimagegallery.com/index.html or something like this ?
Sorry for short post. I mean i will send parameters to script and it will create what i want. For example:http://www.xxx.com/im.php?image=x.jpg&t ... =grayscale.....

All images will be generated 3d style. (Picture 1)

I think the pictures will explain better than me:)

Image
Image
Image
Image
Image
Image
Image
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Imagemagick Expeert Needed

Post by NicolasRobidoux »

I already have simple code that does "false perspective" like this: Image (Original photo credit: Luiz E. Vasconcellos a.k.a. Pictus).
If it's shaded, reflected, put on the right background etc, is this false perspective good enough? (Of course I can orient thing differently and make the side thickness smaller...)
P.S. Sorry: Or course not: The false perspective was specifically so that the part of the image that shows within the front of the frame is seen "straight on". Will look at things some more in the next few days.
Last edited by NicolasRobidoux on 2012-11-15T18:29:00-07:00, edited 2 times in total.
selamlar
Posts: 3
Joined: 2012-11-15T08:18:07-07:00
Authentication code: 6789

Re: Imagemagick Expeert Needed

Post by selamlar »

NicolasRobidoux wrote:I already have simple code that does "false perspective" like this: Image (Original photo credit: Pictus.)
If it's shaded, reflected, put on the right background etc, is this false perspective good enough? (Of course I can orient thing differently and make the side thickness smaller...)
P.S. Sorry: Or course not: The false perspective was specifically so that the part of the image that shows within the front of the frame is seen "straight on". Will look at things some more in the next few days.
I am sorry, I dont know much about imagemagick so i really dont know what false perspective is. I just need the same look seen on first example.
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Imagemagick Expeert Needed

Post by NicolasRobidoux »

Just to make sure:

You want the "same" mirror reflexions?

You want the "same" shadows?

You want the "same" "slanted perspective" look? P.S. Actually, these images are in false perspective: The strainers are shown in "true" perspective ("slanted"), but the image is shown through "straight on". For example, the image does not fold at all along the shown edges of the strainer: straight lines remain straight as they go through the fold, which of course can't match the true result. Consequence: There is absolutely no way what's shown corresponds reasonably closely to the actual frame that's being delivered. Even the "face" of the strainer: We are seeing the original image through transparent windows in the shape of trapezes, and consequently the seen front area simply cannot match any rectangular region of the original image. It's geometrically impossible. I have a much better way of fixing things so that what's shown matches what's sold. Of course, you may not care about whether what's shown matches what's delivered!

You want the "same" type of background (grey gradient, going from lighter at the bottom to darker at the top)?

Or are some of these things unimportant?

If so, which one(s)?
Last edited by NicolasRobidoux on 2012-11-15T19:20:11-07:00, edited 5 times in total.
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: Imagemagick Expeert Needed

Post by NicolasRobidoux »

Another thing: It is not clear from the above sample whether they actually reflect closely how the framed images show up in the customer's maibox. The reason I can tell is that the distances between the various image elements do not change when the image is put onto multiple strainers.
If you would give me enough information about how the image is printed and cut, I actually may be able to reproduce reasonably closely the alignment of the various pieces as they are actually put on the strainers.
-----
Again: Does it matter to you to have the shown frames actually match what will be delivered, or you just want to give a very vague idea of how things look when split onto multiple strainers, or even when put on one single one, given that the provided image will almost never fit perfectly on the strainer (sides included)?
Finally: How much control over the alignment of their image onto the strainers do you want to give customers? None? Centered or one of the 8 standard directions (N, NE, E, SE, S, SW, W, NW)? Even more capability for adjustment?
-----
Remember that ever added degree of customization adds (manageable) complications in both the ImageMagick processing and the browser interface.
Post Reply