Search found 10262 matches

by snibgo
2018-06-18T05:38:52-07:00
Forum: Developers
Topic: Broken gradients
Replies: 5
Views: 96

Re: Broken gradients

convert -density 300 -colorspace sRGB converted_image.jpg sunrise.eps That command reads a JPEG file and writes an EPS file, which is the opposite to your OP question. If you are actually writing to a JPEG file, then JPEGs are only 8 bits/channel, which will show banding in subtle gradients. A 16 b...
by snibgo
2018-06-18T03:26:42-07:00
Forum: Users
Topic: measure positions
Replies: 1
Views: 28

Re: measure positions

ImageMagick works with pixels, not millimetres, but converting between them is trivial.

What is the visual difference between "text blocks" and the rest of the document? IM needs to be told what to measure, that identifies where text blocks occur.

Perhaps you can link to sample documents.
by snibgo
2018-06-16T18:51:55-07:00
Forum: Developers
Topic: Setting different colors to differences between two images
Replies: 5
Views: 141

Re: Setting different colors to differences between two images

I don't use VB or Magick.net, so can't help there. Aside from reading/write files, and list manipulation which you don't need, the only operations used in my commands are: -composite +opaque -negate -colorize So you need to find the functions that correspond to those four operations. You may find th...
by snibgo
2018-06-16T17:16:52-07:00
Forum: Bugs
Topic: possible bug deskew:angle string format
Replies: 3
Views: 66

Re: possible bug deskew:angle string format

I don't think it's a bug. I think "%[deskew:angle]" is calculated by the "-deskew" operation, and is not set until that operation. f:\web\im>%IM%convert rect.gif -format "%[deskew:angle]" info: convert.exe: unknown image property "%[deskew:angle]" @ warning/property.c/InterpretImageProperties/3780. ...
by snibgo
2018-06-16T17:10:14-07:00
Forum: Bugs
Topic: Cannot write extremely wide PNG files
Replies: 3
Views: 49

Re: Cannot write extremely wide PNG files

Results from v6.9.5-3 and 6.9.9-40 and 7.0.7-28 on Windows 8.1 are fine:

Code: Select all

f:\web\im>%IM%convert rose: -resize "34041x256!" x.png
f:\web\im>%IMDEV%convert rose: -resize "34041x256!" x.png
f:\web\im>%IMG7%magick rose: -resize "34041x256!" x.png
by snibgo
2018-06-16T00:46:40-07:00
Forum: Users
Topic: BMP4 to BMP3 - changing alpha from black to white?
Replies: 1
Views: 47

Re: BMP4 to BMP3 - changing alpha from black to white?

Before saving the result, flatten against a background of white (or whatever colour you want):

Code: Select all

-background White -layers Flatten
by snibgo
2018-06-16T00:44:28-07:00
Forum: Users
Topic: Semi-transparent background
Replies: 2
Views: 67

Re: Semi-transparent background

Insert "-evaluate Multiply 0.3" (or whatever opacity you want) like this: convert \( -size 450x450 xc:white \) \ \( +clone -alpha extract \ -draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \ \( +clone -flip \) -compose Multiply -composite \ \( +clone -flop \) -compose Multiply -...
by snibgo
2018-06-15T03:05:48-07:00
Forum: Developers
Topic: Setting different colors to differences between two images
Replies: 5
Views: 141

Re: Setting different colors to differences between two images

1. Never use JPEG inputs if you can avoid it. JPEG compression usually changes pixels, so white pixels are no longer exactly white, etc. However, these examples seem okay. 2. These samples do align, so we don't have an "off by a couple pixels" problem. If we did, it would probably be best to align t...
by snibgo
2018-06-14T10:20:10-07:00
Forum: Users
Topic: How to prevent alpha channel association during conversion?
Replies: 5
Views: 108

Re: How to prevent alpha channel association during conversion?

I guess with ...

Code: Select all

void Magick::Image::attribute(const std::string name_,const char *value_)
... where name_ is "tiff:alpha" and value_ is "unassociated" or whatever.
by snibgo
2018-06-14T04:23:52-07:00
Forum: Users
Topic: please help me
Replies: 2
Views: 58

Re: please help me

danhsmile043 wrote:If there's any way to achieve my goal please tell me, that would be extremely helpful.
Can you link to any examples of input images and dithered results?
by snibgo
2018-06-14T04:08:02-07:00
Forum: IMagick
Topic: HDR Toning feature in IMagick
Replies: 5
Views: 102

Re: HDR Toning feature in IMagick

If I knew what "HDR Toning" was, perhaps I could suggest how to implement it in ImageMagick.
by snibgo
2018-06-14T01:02:00-07:00
Forum: IMagick
Topic: HDR Toning feature in IMagick
Replies: 5
Views: 102

Re: HDR Toning feature in IMagick

For those of us who don't use Photoshop, can you provide a link to a description of HDR Toning?
by snibgo
2018-06-13T15:33:52-07:00
Forum: Users
Topic: Batch autocrop images to fixed size?
Replies: 29
Views: 1155

Re: Batch autocrop images to fixed size?

As I understand it, "-hough-lines" works by trial and error, in increments of one degree. So the error could be up to 0.5 degrees. The error in Fred's example labelled "Hough:" is about 0.46 degrees.
by snibgo
2018-06-13T11:50:08-07:00
Forum: Users
Topic: Merging two image with transparency
Replies: 2
Views: 56

Re: Merging two image with transparency

ImageMagick does not make the error message "bg2.png is not a valid parameter". That error message comes from a Microsoft Windows program called convert.exe. You can put your IM directory at the front of your system path, or always call convert with an explicit path, or rename it something like imco...
by snibgo
2018-06-13T04:17:40-07:00
Forum: Developers
Topic: Setting different colors to differences between two images
Replies: 5
Views: 141

Re: Setting different colors to differences between two images

I don't use VB so can't comment on those aspects. Can you link to sample input images? That would help people to understand your problem. When we have two images, we can easily find which pixels are different. But if we also need to find which pixels have "added" or "removed", what does that mean? P...