Page 2 of 2

Re: ImageMagick Guru

Posted: 2007-04-02T11:36:07-07:00
by pinxi
Hi Anthony-

I think that you should use ArtSelect.com as an example. Art.com is flash based, and after more research, it would be very difficult to replicate.

Here is some low res samples to play with: http://awesomart.com/framesamples.zip

From what I can tell, the best solution would be to tile this image around the frame (with bottom of the frame always facing in towards the image) and then creating the corners dynamically by cutting at 45 degrees. I think that it would be best to limit this to one repeating image; otherwise, it becomes very difficult to line up the patterns.

The patterns at the corners do not need to line up, because they are cut (like in real life.)

And, yes, we should definitely post this to the imagemagick tutorials.

Re: ImageMagick Guru

Posted: 2007-04-02T17:10:00-07:00
by anthony
I was thinking of just inserting the corners on (or appended to) the image, then finding out how much space is left. From this determine the closest number of tile replications neede fit that space, create a edge of that many tiles, then do a minimal resize (without preserving aspect ratio) to fit it between the corner pieces.

If 5 or more edge tiles were used the resize should be minimal enough to be unnoticable.

Your idea of only having a 'edge' tiles (no corners) and mitre them tegether, is also a good one.
For wood frames that would work well. but not for some of the fancier frames, (like leaves and vines).

Re: ImageMagick Guru

Posted: 2007-04-02T18:41:42-07:00
by anthony
I looked at the samples. I like the GoldOrnate one, looks like it only requires two edge tiles too.
however vertical edges also looks like they have been resized from the equivelent horizontal edges. The lighting of the two tiles also does not seem to be quite right either.

I also noticed a slight shadow from the frame on the inner border, that should be easily replicatable.

I'll see if I can come up with a script for you (and IM examples) using this border (with your permission), to replaced to result.

The other samples looks like they have been scaled as they have definate pixelated effects.
I'll have to see if I can resize them back to 'normal'.

Re: ImageMagick Guru

Posted: 2007-04-03T07:36:38-07:00
by pinxi
anthony wrote: Your idea of only having a 'edge' tiles (no corners) and mitre them tegether, is also a good one.
For wood frames that would work well. but not for some of the fancier frames, (like leaves and vines).


I would definite prefer this method (easier to manage from the back end and I think it will lead to better whole frame images.) This method should actually work even for fancier frames. This is the same process that occurs in real life. We take a frame an cut make two 45 degree cuts. Then we place those two edges together to form the corner. The frame should be the same width on all four sides. Fancier frames may have a slight inconsistency of pattern at these edges, but this is expected.

Of course this won't work if the "frame" is suppose to be a continuous piece of material (like a rope or a vine). No idea how to accurately replicate these types, but they are not really needed for my current project.
anthony wrote: I looked at the samples. I like the GoldOrnate one, looks like it only requires two edge tiles too.
however vertical edges also looks like they have been resized from the equivelent horizontal edges. The lighting of the two tiles also does not seem to be quite right either.


I noticed that as well. I wanted to get your something light to work with. I'll can get you whatever type of imagery you need.
anthony wrote: I also noticed a slight shadow from the frame on the inner border, that should be easily replicatable.


That would be great!
anthony wrote: I'll see if I can come up with a script for you (and IM examples) using this border (with your permission), to replaced to result.

The other samples looks like they have been scaled as they have definate pixelated effects.
I'll have to see if I can resize them back to 'normal'.


When it comes time to actually post a couple of images, I would like to get you some better quality images (maybe we can even set it up so the user can change images.)

Thank you again for all your help.

Re: ImageMagick Guru

Posted: 2007-04-03T17:20:06-07:00
by anthony
Don't expect it immediatally. I have some GIF animation 'core' functions to finish first. After that I can work on a basic example in IM Examples, from which I can generate your script.

Re: ImageMagick Guru

Posted: 2007-04-05T09:26:46-07:00
by pinxi
No worries. Let me know if there is anything that I can do to help!

Re: ImageMagick Guru

Posted: 2007-04-06T04:25:50-07:00
by anthony
Thanks.

New code I am developing is coming along, but I needed to invent a way to specify TWO separate image lists using the command line, which only has ONE active list. That would not be a problem for API's which can handle multiple simultanious Image Lists or 'Wands'. Anywahy I think I have a workable solution, so I should be finished this stage (and all the write-ups in IM Examples) soon.

Re: ImageMagick Guru

Posted: 2007-04-09T06:15:02-07:00
by pinxi
Hope you had a good weekend.

I am very interested to see how this works! :D

Re: ImageMagick Guru

Posted: 2007-06-04T22:25:35-07:00
by anthony
You can see it now in IM Examples,
http://www.imagemagick.org/Usage/anim_mods/#composite

As for the framing method that was the original subject of this thread, I did complete a script that can take some edge tiles and mitre them together around the image.
However I recieved no response.

The final solution was to use 'frame' to create 4 shapes to use to cut out the tiled edges. I will when I get some time, put up examples of that method on the IM Examples pages.