Search found 9 matches

by naive
2019-04-08T06:04:13-07:00
Forum: Users
Topic: Loop inside of a loop Batch removing bg
Replies: 5
Views: 2746

Re: Loop inside of a loop Batch removing bg

oops, so i guess i can just solve it with one loop

Code: Select all

for (( i = 1; i <= 77; i++ )) 
do

          magick ${i}.jpg image_a_00${i}.tif -alpha off -compose CopyOpacity -composite ${i}small.png

done 
by naive
2019-04-08T03:45:45-07:00
Forum: Users
Topic: Loop inside of a loop Batch removing bg
Replies: 5
Views: 2746

Re: Loop inside of a loop Batch removing bg

Post some example images and masks so we can examine them. Also what is your exact IM 7.x.x.x version. Note that IM 7 uses magick, not convert and not magick convert. I do not know of any easier way unless the mask is the same for all images. Then you can use magick mogrify. You cannot combine one ...
by naive
2019-04-07T19:23:34-07:00
Forum: Users
Topic: Loop inside of a loop Batch removing bg
Replies: 5
Views: 2746

Loop inside of a loop Batch removing bg

Hey Guys, im have two batches of files: 1. Files with background (jpg) 2. Masks for those files (tif) I'm trying to write a batch script to iterate over those files and remove the backgrounds for each of them, here is my code: for (( i = 10; i <= 19; i++ )) ### Outer for loop ### do for (( j = 10 ; ...
by naive
2019-03-17T09:55:13-07:00
Forum: Users
Topic: Separating each color in an animated gif into separate gifs
Replies: 1
Views: 1280

Separating each color in an animated gif into separate gifs

Hey guys I'm trying to separate a colored animated gif into different color files (each color in a gif should become a new gif only with that color and the rest would be transparent) so i could later bitmap each of those files to give it a bit more sharpness and maybe reduce the size. Could someone ...
by naive
2018-05-06T06:10:13-07:00
Forum: Digital Image Processing
Topic: Gif transparent background cannot remove previous frame
Replies: 2
Views: 11079

Re: Gif transparent background cannot remove previous frame

oke I've found how to do it myself! This worked ->
convert -dispose previous aa.gif nobg.gif

Still i don't understand how come if i run this command ->
convert aa.gif -dispose previous disp2.gif
it doesn't work!

What is this sorcery!?
by naive
2018-05-06T04:48:26-07:00
Forum: Digital Image Processing
Topic: Gif transparent background cannot remove previous frame
Replies: 2
Views: 11079

Gif transparent background cannot remove previous frame

Hey guys, I'm trying to remove background on an animated gif and cant wrap my head around why it doesnt work I've tried convert -delay 5 see6x8x24.gif -coalesce -fuzz 10 -transparent black -loop 0 -layers optimize -limit thread 8 new2.gif convert -delay 5 aa.gif -coalesce -fuzz 10 -transparent black...
by naive
2018-04-27T07:45:06-07:00
Forum: Digital Image Processing
Topic: Why one image gets affected better then another
Replies: 5
Views: 11269

Re: Why one image gets affected better then another

Thanks for the patience You can change pixels that are near black to exactly black with "-black threshold 10%" after reading the input. By saying to apply the black-threshold after reading the input you mean smth like this? -> convert gif.gif -black-threshold 10% -colorspace HCL -channel G -evaluate...
by naive
2018-04-27T05:46:41-07:00
Forum: Digital Image Processing
Topic: Why one image gets affected better then another
Replies: 5
Views: 11269

Re: Why one image gets affected better then another

Thanks Snibgo it worked really good, I experimented with different color channels and another one which was bringing the colors to the edge was HSI I'm running under Mac OS, so on LINUX the code for me was: convert image.gif -colorspace HCL -channel G -evaluate Pow 0.3 +channel -colorspace sRGB -mor...
by naive
2018-04-27T00:12:37-07:00
Forum: Digital Image Processing
Topic: Why one image gets affected better then another
Replies: 5
Views: 11269

Why one image gets affected better then another

Hello all, Firstly i have to say that I'm a avid user of Imagemagick and am very thankful for the great work that you guys are doing to support this fantastic project! I'm working with animated gifs to transform them into sort of line drawings, and i can't understand why one of them has really stron...