Search found 5 matches

by graceman9
2011-04-10T01:04:04-07:00
Forum: Users
Topic: How to check for empty (mono-color) image?
Replies: 6
Views: 16149

Re: How to check for empty (mono-color) image?

Excuse me for the delay in replying.
I need the result - a number.
That's what I found:

Code: Select all

alpha=`convert $f -resize 1x1 txt: | sed '1d' | sed 's/\([^)]*\).*/\1/' | sed 's/,/ /g' | awk '{print $NF}'`
But I still want to do this without "sed" expression :) any advice?
by graceman9
2011-04-08T02:12:29-07:00
Forum: Users
Topic: How to check for empty (mono-color) image?
Replies: 6
Views: 16149

Re: How to check for empty (mono-color) image?

convert image -format "%[standard_deviation]" info: Not work for me. I also try identify -format %[standard-deviation] but two same (empty and transparent images, size 450 and 452 bytes) give different results: $ identify -format %[standard-deviation] 1.png 11571.2 $ identify -format %[standard ...
by graceman9
2011-04-07T07:26:00-07:00
Forum: Users
Topic: How to check for empty (mono-color) image?
Replies: 6
Views: 16149

How to check for empty (mono-color) image?

subj.
For example, I cut the picture on the tiles, and I want to know which of them are empty? (transparent, or the same color). Thanks for the replies.
by graceman9
2011-03-18T07:18:20-07:00
Forum: Users
Topic: Cut large image on tiles
Replies: 4
Views: 11855

Re: Cut large image on tiles

Thanks for the explanation, I solved the problem: convert src.png src.mpc # create full copy on hard drive, use it for better performance And my small script just for remember: #!/bin/bash # USE THIS SCRIPT ON OWN RISK if [ -z "$1" -o ! -f "$1" -o -z "$2" ]; then echo "Invalid parameters" exit fi if ...
by graceman9
2011-03-18T01:35:31-07:00
Forum: Users
Topic: Cut large image on tiles
Replies: 4
Views: 11855

Cut large image on tiles

Hi All, let me explain what I mean. My image 16384x16384 size. My calculations: memory = 16384 x 16384 * 4 /*rgba*/ = 1073741824 byte = 1024 Mb // Is there something wrong? I want cut it for tiles! I try: convert src.img -crop 256x256 tile.png This work for smaller images, but not for my-big-image ...