Do you already know any programming languages? IM has extensions for several programming languages. otherwise, I would stick with making shell scripts: bash in linux, .bat files in windows. learn the commands here: http://www.imagemagick.org/Usage/ edit: this may be of interest too: https://www.youtube.com/watch?v=nbXHbHrfrIs
Looking at this makes me think it's not possible without some intermediate steps, so using crop with draw (and rotate)
convert -size 100x100 xc:transparent -draw "rotate 10 image over 0,0 0,0 'input.png'" output.png
this, but only take part of the input.png, so 30,0 topleft and 10,10 size rect.
http://www.imagemagick.org/discourse-server/viewtopic.php?t=20008
You can use fuzz and trim to crop according to color (http://www.imagemagick.org/script/command-line-options.php#fuzz) but how to detect them? If you know the color will always be white you could add a small border to it first yourself otherwise maybe use the histogram to spot large ammounts of the same color?
not sure which step you are referring to re "remove transparent areas". i suspect you might be thinking of this:
>on TXL do Edit > Clear (this is the "cookie cutting" part, the unwanted texture bit is cut away leaving the "cookie" and transparency everywhere else).
but that's just using the given pattern -- i guess it would also be called a "mask" -- to cut from the texture graphic. given my recent reading on ImageMagick i think this might be the equivalent step:
>... let's use the fancy 'A' from above as a mask to cut out its shape from the rose image.:
>
>composite -compose Dst_In -gravity center \
>
>label_A_white.png rose: -alpha Set compose_mask.png
​
What you're trying to do is use a specific palette. You're not the first. But perhaps that link has enough info to do what you need.
I think you should pass some optimization options, I don't think they are active by default. There's a really nice page about it in the wiki but it's quite a long read. I think the most important things are to use a single palette instead of it getting stored with each frame and to do layeroptimization. There are also gifoptimizers if you don't mind using something else.
i'm not sure if i understand it correctly, i've not used fuzz before and don't know what you want the result to be. On the usage/bugs page there are several methods which use the fx operator to calculate the same thing and improved ones, maybe you can adjust or use one of these? Or maybe use composite instead with a mask you make from the original image?
This is good, reading this, it appears one asshole moron imagemagick developer deliberately screwed up imagemagick just to skew the performance results.
What a fucked up and vain piece of bullshit if that's true... and knowing these projects and the experiences if had to date, it probably is (look at that Rémi Denis-Courmont liar who send a copyright infringement notice to Apple when VLC was posted to the AppStore then complained publicly when Apple CLAIM.
The corrupt liar, Rémi Denis-Courmont, also pretended that we could have "no way of knowing why Apple did 'what Apple does' and removed the App", even though Apple commented that it was because they had received a copyright takedown request, the twat didn't think Apple would disclose that.
What a corrupt asshole, he's the worst.
You think it was that Cristy twat? Trying to find something on http://www.imagemagick.org/script/changelog.php that matches............... hrm, code commit logs per file would help, with diffs.
So many autists in the world of opensource.