Search found 62 matches

by muccigrosso
2018-11-26T00:38:03-07:00
Forum: Users
Topic: Analyze a line of pixels.
Replies: 14
Views: 922

Re: Analyze a line of pixels.

It looks like the gray might work, but since the images appear to be basically grayscale, why not use a highly colored background, like a bright red piece of paper? Finding the gaps with that should be easier.
by muccigrosso
2018-11-22T00:59:37-07:00
Forum: Users
Topic: Convert pixels within IM?
Replies: 3
Views: 915

Re: Convert pixels within IM?

@snibo, thanks! That's the approach I was looking for. (I often find that I just need a new way of thinking about what I'm trying to do to get IM to work for me.)

Turns out that I don't want to add the border before trimming, or at least I don't want to add a black one. A white one works fine.
by muccigrosso
2018-11-18T18:34:57-07:00
Forum: Users
Topic: Convert pixels within IM?
Replies: 3
Views: 915

Convert pixels within IM?

I'm working with single rows of pixels in binary images, so a bunch of white and black pixels. What I'd like to do is make sure that all the pixels between the first and the last black ones are also black. For example, if the row were: 0 0 0 1 0 0 1 0 0 0 It would become 0 0 0 1 1 1 1 0 0 0 Can I do...
by muccigrosso
2018-11-18T18:23:59-07:00
Forum: Users
Topic: -rotate more than double jpg size
Replies: 5
Views: 947

Re: -rotate more than double jpg size

Good to know, though it still re-compresses when that option is chosen.
by muccigrosso
2018-11-18T15:35:42-07:00
Forum: Users
Topic: -rotate more than double jpg size
Replies: 5
Views: 947

Re: -rotate more than double jpg size

Could you also use exiftool to alter the orientation tag of your jpegs?

Code: Select all

exiftool -Orientation=3 <filename>
Some apps will ignore this tag (like IM), which is why it might not work for you.
by muccigrosso
2018-10-15T08:46:02-07:00
Forum: Bugs
Topic: Problem with -depth on PNG images
Replies: 3
Views: 1836

Re: Problem with -depth on PNG images

Yeah, I do this a lot and the problem just started.
by muccigrosso
2018-10-15T00:06:38-07:00
Forum: Bugs
Topic: Problem with -depth on PNG images
Replies: 3
Views: 1836

Problem with -depth on PNG images

I'm trying to do a simple reduction of the depth of some grayscale images (of text) that I have. They're in PNG format. When I use a depth of 2 or 3, the entire image gets compressed into the left side of the canvas, leaving the side half black. It only seems to happen with gray PNG files. I can rep...
by muccigrosso
2018-09-25T11:51:02-07:00
Forum: Users
Topic: TIFF compression not working?
Replies: 3
Views: 1944

Re: TIFF compression not working?

This seems to be all fixed in IM 7.0.8-12.
by muccigrosso
2018-09-04T11:22:50-07:00
Forum: Users
Topic: TIFF compression not working?
Replies: 3
Views: 1944

TIFF compression not working?

Is there a problem with tiff group4 and fax compression? I'm having trouble getting good compression with them, and perhaps coincidentally these are the two compression schemes that were affected by this patch . For example, magick logo: -threshold 80% -alpha off -monochrome -compress METHOD -qualit...
by muccigrosso
2018-09-02T22:22:47-07:00
Forum: Users
Topic: How to create a group4 compressed tiff with tiff:photometric: min-is-black?
Replies: 4
Views: 1833

Re: How to create a group4 compressed tiff with tiff:photometric: min-is-black?

Is there a broader problem with tiff compression? I'm having trouble getting group4 and fax (which I don't normally use) to give me good compression and these are the two compression schemes that were affected by this patch . For example, magick logo: -threshold 80% -alpha off -monochrome -compress ...
by muccigrosso
2018-08-19T11:40:18-07:00
Forum: Users
Topic: How to create a group4 compressed tiff with tiff:photometric: min-is-black?
Replies: 4
Views: 1833

Re: How to create a group4 compressed tiff with tiff:photometric: min-is-black?

Ditto using magick in place of convert on my Mac with

Version: ImageMagick 7.0.8-10 Q16 x86_64 2018-08-18 https://www.imagemagick.org
by muccigrosso
2018-06-10T08:31:25-07:00
Forum: Users
Topic: -shave and aspect ratio
Replies: 5
Views: 2417

Re: -shave and aspect ratio

"preserve-ratio" seems like a useful option to have on the shave command (or someplace similar).
by muccigrosso
2018-05-08T08:58:32-07:00
Forum: Users
Topic: Unicode symbol to image
Replies: 11
Views: 1951

Re: Unicode symbol to image

This slightly simpler command works for me and uses whatever color I want with -fill:

Code: Select all

convert -size 50x50 xc:transparent -pointsize 30 -fill red -annotate +10+33 "O" show:
ImageMagick 7.0.7-30 Q16 x86_64 2018-05-06
by muccigrosso
2018-05-05T17:02:20-07:00
Forum: Users
Topic: Variable argument in a string
Replies: 3
Views: 1078

Re: Variable argument in a string

%w, not %w% and magick instead of convert for v 7 functionality.

Not sure it does what you want, but at least no errors for me.
by muccigrosso
2018-05-04T07:53:49-07:00
Forum: Users
Topic: How Can I Determine The Visual, Background Color?
Replies: 2
Views: 1057

Re: How Can I Determine The Visual, Background Color?

You could get the histogram data from identify, manipulate the text a bit, then sort it to get the max. Everything after the use of identify would use some other tool.