Search found 12163 matches

by snibgo
2013-09-20T06:51:24-07:00
Forum: Users
Topic: Images appearing to be darker on site
Replies: 12
Views: 3988

Re: Images appearing to be darker on site

You have shown us a light image and a darker version of that image.

Some command must have made the change. What was that command?
by snibgo
2013-09-19T19:07:37-07:00
Forum: Users
Topic: GetErrorMode could not be located in KERNEL32.dll
Replies: 7
Views: 7060

Re: GetErrorMode could not be located in KERNEL32.dll

From the page http://www.imagemagick.org/script/binar ... hp#windows , I downloaded and installed ImageMagick-6.8.6-10-Q16-x64-static.exe, and that seems to work okay.
by snibgo
2013-09-19T13:08:24-07:00
Forum: Users
Topic: Drop shadows
Replies: 7
Views: 7012

Re: Drop shadows

Your use of %1 is incorrect. Command on the same line as "for" mustn't be bracketed. Brackets are for putting the command on a separate line. For example, put one of these in a command file, and ALWAYS call it with the name of a directory. for %%f in (%1\*.png) do %IM%convert "%%f&quo...
by snibgo
2013-09-19T12:29:42-07:00
Forum: Bugs
Topic: Imagemagick won't follow HTTP Location headers
Replies: 11
Views: 13884

Re: Imagemagick fails when trying to get images from HTTPS U

Is that on Windows? If so, that would suggest I have a Windows configuration issue.
by snibgo
2013-09-19T12:27:02-07:00
Forum: Users
Topic: GetErrorMode could not be located in KERNEL32.dll
Replies: 7
Views: 7060

Re: GetErrorMode could not be located in KERNEL32.dll

6.8.6-10 has only just been released, in the last day or so.

When does the error occur? During istallation? Or while running an IM command -- if so, exactly what command?
by snibgo
2013-09-19T12:13:16-07:00
Forum: Users
Topic: Drop shadows
Replies: 7
Views: 7012

Re: Drop shadows

For shadows in IM, see http://www.imagemagick.org/Usage/blur/#shadow

For looping through files in Windows, type "help for" or "forfiles /?".
by snibgo
2013-09-19T11:41:00-07:00
Forum: Bugs
Topic: Imagemagick won't follow HTTP Location headers
Replies: 11
Views: 13884

Re: Imagemagick fails when trying to get images from HTTPS U

Oh, I see what you mean, and agree IM seems to have a bug. As a simpler example, where the http and https versions are available from a web browser: convert http://duckduckgo.com/assets/logo_homepage.normal.v102.png d.png convert https://duckduckgo.com/assets/logo_homepage.normal.v102.png d.png The ...
by snibgo
2013-09-19T09:24:58-07:00
Forum: Users
Topic: Images appearing to be darker on site
Replies: 12
Views: 3988

Re: Images appearing to be darker on site

What command processed the image? What version of ImageMagick?
by snibgo
2013-09-19T09:21:15-07:00
Forum: Users
Topic: What does turning alpha on and then off again do?
Replies: 16
Views: 12662

Re: What does turning alpha on and then off again do?

The effect is probably to prevent pre-multiplication of pixel values by alpha during the resize. The effect can be demonstrated in a Windows script, using IM 6.8.6-9, writing black text on a transparent white background: %IM%convert ^ -size 1000x600 -background rgba(100%%,100%%,100%%,0) ^ label:snib...
by snibgo
2013-09-19T07:19:22-07:00
Forum: Bugs
Topic: Imagemagick won't follow HTTP Location headers
Replies: 11
Views: 13884

Re: Imagemagick fails when trying to get images from HTTPS U

Interesting. On wget 1.5.3, on Windows 7, I get: D:\web\im>wget "https://graph.facebook.com/4/picture?width=177&height=113" -O test.jpg --15:13:17-- ftp://https:21/%2Fgraph.facebook.com/4/picture?width=177&height=11 3 => `test.jpg' Connecting to https:21... https: Host not found un...
by snibgo
2013-09-18T22:39:29-07:00
Forum: Bugs
Topic: Imagemagick won't follow HTTP Location headers
Replies: 11
Views: 13884

Re: Imagemagick fails when trying to get images from HTTPS U

I've used IM to get https files before, though not often.

I note that wget succeeds for your http example, and fails for the https. I think that if wget fails, I would expect IM to also fail.
by snibgo
2013-09-18T21:08:12-07:00
Forum: Users
Topic: Test if image has ALL the given colors?
Replies: 3
Views: 2571

Re: Test if image has ALL the given colors?

Your code will return a false negative if, say, you have one pixel of a chosen colour but the image is more than 65536 pixels. I'll ignore that problem. I think this returns a black image if none of the colours are present. If they are all present, it returns non-black. convert image.png \ -fill bla...
by snibgo
2013-09-18T16:32:42-07:00
Forum: Users
Topic: Select largest connected nonwhite area
Replies: 12
Views: 3256

Re: Select largest connected nonwhite area

fmw42 wrote:But I think you can remove two -negates and use mpr to avoid saving files to disk.
True. My script contained "-negate -negate", which is about as pointless as possible. And I remember thinking "I'll use mpr when I've got it working", but never got around to it.
by snibgo
2013-09-18T12:49:38-07:00
Forum: Users
Topic: Select largest connected nonwhite area
Replies: 12
Views: 3256

Re: Select largest connected nonwhite area

We can find a point in the largest area with morphology, though it uses an unusual definition of "largest": the area with a pixel furthest from any of its edges. Windows script: convert ^ original2.png ^ -depth 16 ^ -fill black +opaque white -negate ^ -negate -write r0.png -negate ^ -morph...
by snibgo
2013-09-17T12:07:58-07:00
Forum: Users
Topic: ImageMagick-6.8.6-9-Q16-x86-dll.exe not a valid win32 app
Replies: 2
Views: 2728

Re: ImageMagick-6.8.6-9-Q16-x86-dll.exe not a valid win32 ap

You got it from http://www.imagemagick.org/script/binary-releases.php#windows I suppose? I've just tried it in Windows 7, and it installs with no problem. I install from an ordinary user account, so the first thing it did was ask for Admin privileges. Perhaps your download is corrupted. I suggest yo...