Search found 11 matches

by serrotos
2014-06-28T22:12:26-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

I use it in command line. Thank you.
by serrotos
2014-06-28T04:47:28-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

FOR /R %A in (*.png) DO (

FOR /F "usebackq skip=1 tokens=6 delims=():, " %C IN (`convert "%A" -alpha off -crop 1x1+0+0 -depth 16 txt:`) DO set ONE_PIXEL=%C

if "%ONE_PIXEL%"=="#FFFF00000000" ( convert "%A" -fill "rgba(255,255,255,0)" -draw "color 0,0 point" png32:"%~npA.png")

)

This works fine ...
by serrotos
2014-06-28T01:01:11-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

This looks fine. It gets file path in %A.


FOR /R %A in (*.png) DO (
FOR /F "usebackq skip=1 tokens=6 delims=():, " %C ^
IN (`convert "%A" ^
-alpha off ^
-crop 1x1+0+0 ^
-depth 16 ^
txt:`) ^
DO set ONE_PIXEL=%C

if "%ONE_PIXEL%"=="#FFFF00000000" (
convert "%A" -fill "rgba(255,255,255,0 ...
by serrotos
2014-06-27T21:05:03-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

This does not work, but you mean something like this?

FOR /R %A in (*.png) DO (
FOR /F "usebackq skip=1 tokens=6 delims=():, " %C ^
IN (`convert %A ^
-alpha off ^
-crop 1x1+0+0 ^
-depth 16 ^
txt:`) ^
DO set ONE_PIXEL=%C

if "%ONE_PIXEL%"=="#FFFF00000000" (
convert "%A" -fill "rgba(255,255 ...
by serrotos
2014-06-27T20:16:13-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

Thanx. So is this possible?

(check the top left corner of *.png and if it's red, replace it with transparent color,if it's not do nothing) to all images of all folders.
by serrotos
2014-06-27T19:12:02-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

Sorry for my late reply.
It works fine when I use it with convert and I tried to use it with mogrify, but failed.

FOR /F "usebackq skip=1 tokens=6 delims=():, " %C ^
IN (`mogrify *.png^
-alpha off ^
-crop 1x1+0+0 ^
-depth 16 ^
txt:`) ^
DO set ONE_PIXEL=%C

if "%ONE_PIXEL%"=="#FFFF00000000 ...
by serrotos
2014-06-25T23:17:29-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

Thank you. I will check the page.
I don't care so much about the red color. I will delete it anyway. I need to have the red pixel to make it border area to trim image's useless transparent areas that After Effects makes when rendering. Red pixel also tells me x y coordination of images.It's hard to ...
by serrotos
2014-06-25T21:41:42-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

OK. This works fine.
FOR /R %A IN (*.png) DO ( convert "%A" -fill "rgba(255,255,255,0)" -draw "color 0,0 point" png32:"%~npA.png")

Seems I need to add quotation to -fill. Thank you very much. It saves tons of times.
I will use white transparent color. I never thought about color of transparent ...
by serrotos
2014-06-25T21:00:40-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

And I should have said that I need to do resizing before removing red dot, because I need to use After Effects to do render and resizing. AE's resizing is crisper than ImageMagick.
by serrotos
2014-06-25T20:50:28-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

Re: remove red dot from top left corner of 32bit png images.

Thank you for your comments.
I don't need to worry about mixing, because I placed the red dot on the place where there are no colors around. And I need to have transparent dot.

I tried to batch all files of all sub folders, but this does not work.
it says I used -draw incorrectly.

FOR /R %A IN ...
by serrotos
2014-06-25T18:18:25-07:00
Forum: Users
Topic: remove red dot from top left corner of 32bit png images.
Replies: 20
Views: 7298

remove red dot from top left corner of 32bit png images.

Hello. I needed to do batch resizing to 32 bit png images and all png images have 1 pixel red dot,which I intentionally painted to use as a mark,on top left corner of images(x 0 Y 0 coordinate.). After resizing,I need to replace it with transparent 1 pixel dot,but I can't.

1 pixel red dot's color ...