Search found 81 matches

by niyanwen
2019-07-02T09:00:30-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

got it, start a new post, thank you!
by niyanwen
2019-07-01T22:20:17-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

one compare image are same command starts fail and detect transparent image command did not work also
image magick version: 6.9.4_1
by niyanwen
2019-07-01T22:13:55-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

one interesting thing is it is much slower because I used 7.X version in my java application, but if I switched to 6.9 version, it is much faster, but one compare command is starts fail
by niyanwen
2019-07-01T20:55:33-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

thanks, it works

I have another question, so currently I am running two commands in my java application. one is scale image, the other is remove transparent space and get image offset, what I mentioned in this post, but it running is too slow, is there a way to increase the processing speed?
by niyanwen
2019-06-27T10:25:36-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

thanks for you answer, in this case, I only care the image is fully transparent or not fully transparent, I think I would go with this command, if there is other shorter one, since I use java code, so shorter one might be clearer, but if not, it is fine convert transparent_image.png -channel a -sepa...
by niyanwen
2019-06-26T14:54:40-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

in the other answer I saw you are using this command, is this the only way to do it?
convert transparent_image.png -channel a -separate -scale 1x1! -format "%[fx:mean]\n" info:
by niyanwen
2019-06-26T14:50:03-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

I want to see if this image is fully transparent, if not I will trim this image as I mentioned above, so I cannot tell if it is transparent from detect transparency command right? is there a way I can just know if this is a fully transparent image or not? I don't want to know some transparency what ...
by niyanwen
2019-06-26T14:06:17-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

basically can I assume if output xOffset == src.getWidth() && yOffset == 0, sec is the original image before trim, I can say this image is total transparent?
by niyanwen
2019-06-26T12:58:34-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

Hi

something might be related, I also want to detect if this image is fully transparent, is there anything I can tell from this output, or I need to do it before running this command? for if it is transparent, I don't need to trim it
by niyanwen
2019-06-22T17:36:00-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

thanks, question for my own learning, for printing purpose, we only need to know top, left boundary, which is x, y and we don't need to know right, and bottom boundary right?
by niyanwen
2019-06-22T17:03:49-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

when I trim it, can I add some padding there, for example, have a padding 5 around the border when trim it?
by niyanwen
2019-06-22T16:01:29-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

wow, great, thank you so much!
by niyanwen
2019-06-22T12:07:43-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

Hi, after revisiting my use case, I think what I need is this is original picture https://m.media-amazon.com/images/G/01/POD/SHIRT_ART_IMAGE1.png I want to know know x, y direction basically need to know left boundary, and top boundary which don't have transparency in here top boundary is 583 and le...
by niyanwen
2019-06-20T11:11:51-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

Re: How to know the image's transparent space?

Hi thanks for your answer, I want to explain a little, so I have an image to print using some printer I want to get this image boundary and exclude transparency. since printer needs to know image boundary another thought I have, could I use trim function to trim the transparency of this image, and c...
by niyanwen
2019-06-19T16:17:15-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 33
Views: 15952

How to know the image's transparent space?

If I have in image, which has transparent space, is there a way I can know the transparent space starts from x and y? basically like this image boundary?