Search found 12867 matches

by snibgo
2013-02-01T10:19:56-07:00
Forum: Bugs
Topic: error in -draw "polyline ..." function
Replies: 5
Views: 4599

Re: error in -draw "polyline ..." function

What do you think it is doing wrong?

It's also helpful if you state your platform and IM version.
by snibgo
2013-02-01T04:14:55-07:00
Forum: Users
Topic: Help with using IM convert
Replies: 3
Views: 4981

Re: Help with using IM convert

I have reported this on the bugs forum: viewtopic.php?f=3&t=22720
by snibgo
2013-02-01T04:14:05-07:00
Forum: Bugs
Topic: Transparency removed
Replies: 7
Views: 14936

Transparency removed

The current version of IM for Windows, 6.8.2-0, seems to be removing transparency. "%IMG682%convert" -size 100x100 xc:none -fill Red -draw "rectangle 20,20 80,80" t.png "%IMG682%convert" t.png t2.png t2.png has black where t.png wa transparent. See also http://www.imagemagick.org/discourse-server/vi...
by snibgo
2013-02-01T04:04:28-07:00
Forum: Users
Topic: Help with using IM convert
Replies: 3
Views: 4981

Re: Help with using IM convert

I can reproduce the problem on Windows 7 in 6.8.2-0. It did not occur in v 6.8.1-10. The problem is independant of "+append". It seems that IM 6.8.2 is simply removing transparency: "%IMG682%convert" -size 100x100 xc:none -fill Red -draw "rectangle 20,20 80,80" t.png "%IMG682%convert" t.png t2.png t...
by snibgo
2013-02-01T03:17:14-07:00
Forum: Users
Topic: [Solved] Convert BMP to 8-bit with specific colormap order
Replies: 3
Views: 5675

Re: Convert BMP to 8-bit with specific colormap order

Update: we don't need "-colorspace Gray", so the command simplifies to:

Code: Select all

"%IMG%convert" palette.bmp -set colorspace RGB -type Palette p.bmp
by snibgo
2013-02-01T02:36:23-07:00
Forum: Users
Topic: [Solved] Convert BMP to 8-bit with specific colormap order
Replies: 3
Views: 5675

Re: Convert BMP to 8-bit with specific colormap order

I don't think there is a way to guarantee a particular palette order. However, it seems that this does what you want (in IM v 6.7.9 on Windows7): "%IMG%convert" palette.bmp -set colorspace RGB -colorspace Gray -type Palette p.bmp "identify -verbose" shows the palette in p.bmp, and "compare" verifies...
by snibgo
2013-02-01T02:03:27-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 15049

Re: How to remove black background.

Any ideas on how to make this work on all files in one directory and create a directory of the cropped images within it?
http://www.imagemagick.org/Usage/basics/#mogrify
by snibgo
2013-01-31T12:15:07-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 15049

Re: How to remove black background.

Instead of out\%2, just put whatever directory and filename you want. If you are putting this in a Windows batch file, you need to double up the % signs. If you are typing at the command line, don't double them. I showed it as one command. If you want it as two commands, here they are: "%IMG%convert...
by snibgo
2013-01-31T10:58:07-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 15049

Re: How to remove black background.

Oh. Ah. Um. A script is a text file that contains commands. How you create one depends on what type of computer you are using -- in particular the operating system. This isn't a scripting forum, and I wouldn't attempt to explain it. There many guides on the net. Likewise, this isn't a camera forum. ...
by snibgo
2013-01-31T10:08:29-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 15049

Re: How to remove black background.

The camera exposure varies, according to the size of the receipt. It's better to use manual control, where the camera has it, so backgrounds and foregrounds are consistent. Of course, a scanner would be even better. The "black" background has light smudges, needing some heavy manipulation to remove....
by snibgo
2013-01-31T09:47:31-07:00
Forum: Bugs
Topic: Only first page of PDF is converted by IM under Windows
Replies: 3
Views: 4769

Re: Only first page of PDF is converted by IM under Windows

v6.8.0-9 was also broken.
by snibgo
2013-01-31T09:43:33-07:00
Forum: Bugs
Topic: Only first page of PDF is converted by IM under Windows
Replies: 3
Views: 4769

Re: Only first page of PDF is converted by IM under Windows

Confirmed, on Windows 7. Example of 6.8.1-10, then 6.7.9-6: D:\web\im> D:\web\im>"%IMG681%convert" -verbose j.pdf jj.jpg [ghostscript library] Files (x86)/gs/gs8.71/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDE...
by snibgo
2013-01-31T09:27:20-07:00
Forum: Users
Topic: remap problem
Replies: 1
Views: 2311

Re: remap problem

What is "-colorspace RGB" doing in your commands? When I use that, I get your (bad) result. When I omit it, I get what I think is the correct result. You don't need to change the colorspace, and I think you shouldn't. (As an aside, I would rather like to be able to specify an image and map in some o...
by snibgo
2013-01-31T04:37:15-07:00
Forum: Users
Topic: Overlapped images (what can you do with it)
Replies: 15
Views: 35901

Re: Overlapped images (what can you do with it)

Blurring will find the corners of a white line on black background, because there is a greater density of white at a corner. For example, if we draw the white outline of a square on a black background, and then blur it, the corners are lighter than the edges. "%IMG%convert" ^ -size 100x100 xc:Black ...
by snibgo
2013-01-30T23:23:36-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 15049

Re: How to remove black background.

The exposure varies across the images, so you don't know what levels are best. Instead, I'd use "-contrast-stretch", eg:

Code: Select all

convert in.jpg -colorspace RGB -contrast-stretch 10%%,10%% out.png
And "+repage" might be useful.