Search found 5 matches

by neurosys
2016-04-19T01:54:42-07:00
Forum: Users
Topic: Performance optimization tips
Replies: 11
Views: 5992

Re: Performance optimization tips

Thank you, this is exactly what I needed. . The perspective transform below takes me 0.13 seconds on my IM 6.9.3.8 Q16 Mac OSX running two cores. Only one command line for doing the image processing and I use +distort ... -layers merge +repage. tl_bg="494,108" tr_bg="579,118" br_bg="579,197" bl_bg ...
by neurosys
2016-04-18T15:14:08-07:00
Forum: Users
Topic: Performance optimization tips
Replies: 11
Views: 5992

Re: Performance optimization tips

Thanks, it reduced to about 0.6 seconds. Bulk of it is likely reading/writing the image. convert image.png -background transparent +distort Perspective "1,1, 494,108 201,1 579,120 1, 201 494,183 201, 201 576,196" -compose DstOver -composite bg.png output.png Except transparency doesn't work for some ...
by neurosys
2016-04-18T14:40:04-07:00
Forum: Users
Topic: Performance optimization tips
Replies: 11
Views: 5992

Re: Performance optimization tips

I'm still reading the documentation and trying to figure how I would achieve increasing canvas size while doing distort perspective with the following command: convert image.jpg -background transparent -distort Perspective "1,1, 494,108 201,1 579,120 1, 201 494,183 201, 201 576,196" output.png ...
by neurosys
2016-04-18T13:53:33-07:00
Forum: Users
Topic: Performance optimization tips
Replies: 11
Views: 5992

Re: Performance optimization tips

Thanks for input. I'll look into them now. In the meantime to clarify things: You call that script once per frame, with the same BG and IMAGE in each frame, is that right? No. BG is actually a frame of the video, so it changes each time. IMAGE doesn't change, but control points keep changing for ...
by neurosys
2016-04-18T12:28:00-07:00
Forum: Users
Topic: Performance optimization tips
Replies: 11
Views: 5992

Performance optimization tips

Hello, My requirement is perspective rotating a user submitted image into a pre-rendered background image (which is actually required per frame on a video). The easiest was to use ImageMagick and I wrote a very crude simple bash script to achieve what I needed as follows: #!/bin/bash # @author ...