(You may need to edit the path to convert.exe for your version of ImageMagick.)
Explanation: Using ImageMagick - the versatile and free graphic utility - the button auto-crops the selected image(s), adds the suffix " - trimmed" to each one, and saves the new images in the source folder.
Auto-crop means that ImageMagick looks at the edges of the image and automatically works out if there is a border and what color it is, then removes it. It removes "unnecessary mono-color pixel areas" from the edges of a picture by reducing the canvas size of the image.
I installed ImageShack and your button last night and it seems to work well ... with one exception. The test images that I used had fairly large white borders around the images. The crop command reduced this white border by about half or two-thirds but didn't eliminate it completely. I looked at the ImageShack documentation (well, briefly) and couldn't figure out a way to expand how much of the border was removed. Do you have any experience using ImageShack to do this?
I don't think that's the problem. I'm using a graphic app that starts with a blank white page onto which I'm adding a frame and then graphic elements inside the frame. I was trying to use ImageShack to then eliminate the white border around the frame. Is there an easy way to check to see if all of those pixels are the same? And note that ImageShack did crop most of the white border, just not all of it.
Oh, and what did you mean about an other ImageMagick version? Are you talking just about v6.6.5 etc. or is there a wholly different edition of the program available? I just downloaded it a few weeks ago.
I wonder is there a function to analyze the best crop dimension across an animation [sequence of images] ie. so the image dimension of the crop is be best average of all the images in the sequence. It would save loading in say After Effects, looking at the sequence and cropping and re-rendering...
Do you mean analyze which animation frame (PNG images in some folder) is the largest after being cropped (by alpha), and then crop all of them to that common size? I've made such utility for work some time ago, if you need it, I can make you a simplified stripped-down version.
[quote="AlanEd"]Hey thanks a mil - what are the requirements for it to work ... FFmpeg/ImageMagick?
Sorry didn't see post, must check how to get emails...[/quote]
There are no separate requirements*, it's an already-compiled C++ utility (uses FreeImage library). Check the attached cropAnimFrames.7z below which contains the utility executable and the accompanying FreeImage dll.
While it supports command-line parameters (run it with -? in the console to get the list) you can also just double-click it from Opus (or Explorer) and it will ask you for the path so you can paste a folder path which contains your PNG frames and it will process them as described in my previous comment. Directory "autocropped" will be automatically created and processed versions of your frames will be there.
*I know this thread is years old but I'll ask the question, in case there was an update to that utility.
This was working great but I think since I have set up my OneDrive, that it's not dealing well with an unusual character in the file path.
Works fine on say :
D:\OneDrive - VTEÉ\Old
Here is the updated version (64 bit), it now supports unicode paths and spaces, but with some caveats:
If running this utility in the interactive mode (just double-clicking it) the unicode path input may not work due to way Windows CMD works. However, you can use the command line -i "some/path" switch, that should work (you're probably already using it that way).
It's best to enclose the paths in quotes, this way spaces are supported. Paths can be relative or absolute.
Both the forward slashes / and the backslashes \ are supported in directory paths, however the backslashes must be escaped like so: \\ (at least in the CMD).
Wonderful! that is working perfectly.
Here is my button command. I have the utility in my user folder for Opus, so it comes with me and also is captured in Opus backups. Really appreciate that. Nearly* got other methods to work! So kind to sort that out.