Doubt regarding GIF creation from set of images
Posted: 2014-03-27T13:09:22-07:00
Hi,
I'm using ImageMagick for verifying functionalities of my application. I wrote scripts which will verify the behaviour using Compare command utilities and it is working fine for me.
I am saving image when a comparison failed. So need to analyze the current failed image against the precaptured image to know, what went wrong during failure. Initially I composed a difference between precaptured and current failed image, but when those two are entirely different screens in application, it is very difficult for me to interpret the diff image.
precaptured :
current application image :
While going through IM tutorials, I read that we have options to create GIF images. So planning to save a GIF of image during the image comparison failure case as below
convert -delay 30 -loop 10 two.jpg one.jpg two.jpg out.gif
out.gif :
Here as per tutorial gave loop as 10 instead of 0 for easy analysis and also set first and last frame as two.jpg, because we can't predict the end frame during loop shutdown.
Please correct me, if above steps are wrong.
Coming to my issue,
I want to add some additional text or small image to correctly identify the two frames(precaptured and currently failed )images as below
precaptured with 'P' text on left top corner :
current failed image with 'E' text on left top corner:
How can I add some text or small images for identifying these frames, before creating the GIF ? Please share commands for doing this job. Also share inputs regarding performance of this operation - whether a costly one or not ?
I'm using ImageMagick for verifying functionalities of my application. I wrote scripts which will verify the behaviour using Compare command utilities and it is working fine for me.
I am saving image when a comparison failed. So need to analyze the current failed image against the precaptured image to know, what went wrong during failure. Initially I composed a difference between precaptured and current failed image, but when those two are entirely different screens in application, it is very difficult for me to interpret the diff image.
precaptured :
current application image :
While going through IM tutorials, I read that we have options to create GIF images. So planning to save a GIF of image during the image comparison failure case as below
convert -delay 30 -loop 10 two.jpg one.jpg two.jpg out.gif
out.gif :
Here as per tutorial gave loop as 10 instead of 0 for easy analysis and also set first and last frame as two.jpg, because we can't predict the end frame during loop shutdown.
Please correct me, if above steps are wrong.
Coming to my issue,
I want to add some additional text or small image to correctly identify the two frames(precaptured and currently failed )images as below
precaptured with 'P' text on left top corner :
current failed image with 'E' text on left top corner:
How can I add some text or small images for identifying these frames, before creating the GIF ? Please share commands for doing this job. Also share inputs regarding performance of this operation - whether a costly one or not ?