Search found 11725 matches

by snibgo
2019-06-26T12:40:08-07:00
Forum: Users
Topic: Removing water mark from scanned image
Replies: 3
Views: 102

Re: Removing water mark from scanned image

With "-connected-components". Threshold the image, possibly after a blur, then use "-connected-components" with an area threshold to get just the large black components. Negate that, and "-compose Lighten -composite" with the original. The result will have the largest black marks whitened. But this ...
by snibgo
2019-06-26T12:32:49-07:00
Forum: Users
Topic: Win10: Resize all selected files via send-to bat file
Replies: 2
Views: 43

Re: Win10: Resize all selected files via send-to bat file

I suggest a BAT script something like this:

Code: Select all

echo Arg   = %*
echo CD    =%CD%
pause
:loop
if "%1"=="" (
  echo Finished
  pause
  exit
)
echo %1
magick %1 -resize 1920x1920 -quality 90 %1
shift
pause
goto loop
by snibgo
2019-06-26T08:25:56-07:00
Forum: Users
Topic: .TIF with compression RLE
Replies: 4
Views: 73

Re: .TIF with compression RLE

Did you make either image with ImageMagick? What version? On what platform?

What software did you use to view the images? Perhaps that software can't read tiff RLE.

If you paste links to the images, we can experiment.
by snibgo
2019-06-26T08:21:00-07:00
Forum: Developers
Topic: Multi-channel EXR support in command-line
Replies: 2
Views: 71

Re: Multi-channel EXR support in command-line

One ambition for IM V7 was the ability to read, process and write an arbitrary number of channels. But this has not happened. exiftool can see the names of the many channels in sample_beauty_variance.exr, but has no ability (as far as I know) to rename the channels or to extract pixel data from arbi...
by snibgo
2019-06-26T06:41:33-07:00
Forum: Magick++
Topic: [SOLVED]: Error Image.read JPG
Replies: 3
Views: 84

Re: Error Image.read JPG

What version of IM, on what platform?

What error is reported?

At the command line, with IM v6.9.9-50 and v7.0.7-28 on Windows 8.1, I get no errors for that image.
by snibgo
2019-06-26T06:10:29-07:00
Forum: Users
Topic: Removing water mark from scanned image
Replies: 3
Views: 102

Re: Removing water mark from scanned image

From the image you supply, I doubt there is a good solution. I can't see what distinguishes the large text from the small text. You could remove the long lines of the large text but cleanly removing these, while leaving "ep" of "Deputy", seems impossible.
by snibgo
2019-06-26T04:26:57-07:00
Forum: Magick++
Topic: Win VC++ ImageMagick-7.0.8-Q16\Magick++_Demo - Getting :error LNK2019: unresolved external symbol "__declspec(dllimport)
Replies: 1
Views: 71

Re: Win VC++ ImageMagick-7.0.8-Q16\Magick++_Demo - Getting :error LNK2019: unresolved external symbol "__declspec(dllimp

I don't use VC++ but one problem is:
1>..\lib\CORE_RL_MagickCore_.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
It seems your library has been build for 64-bit CPUs but your target machine is a 32-bit CPU.
by snibgo
2019-06-25T14:49:55-07:00
Forum: Users
Topic: How to find out if a *.jpg is currently rotated?
Replies: 2
Views: 107

Re: How to find out if a *.jpg is currently rotated?

What version of IM, on what platform?

See "orientation" on http://www.imagemagick.org/script/escape.php

Code: Select all

magick or_1.jpg -format %[orientation] info:

TopLeft
See also http://www.imagemagick.org/script/comma ... uto-orient and Orientation.
by snibgo
2019-06-25T13:05:01-07:00
Forum: Users
Topic: Unable to parallelize pdf -> png conversion
Replies: 4
Views: 125

Re: Unable to parallelize pdf -> png conversion

Another possibility is a memory problem. When IM is used, Ghostscript rasterizes the entire document and passes that to IM which reads the entire rasterized document into memory. This might be hundreds of pages. When using Ghostscript directly, I don't suppose it needs to hold all rasterized pages i...
by snibgo
2019-06-25T09:40:51-07:00
Forum: Users
Topic: Unable to parallelize pdf -> png conversion
Replies: 4
Views: 125

Re: Unable to parallelize pdf -> png conversion

You try with the same input PDF for all processes. Have you tried this with different PDFs? What happens then? IM delegates the work of rasterizing the PDF to Ghostscript. "-verbose" will show the command used. I think IM creates a temporary file for the PDF, copies the input PDF to that, and calls ...
by snibgo
2019-06-25T03:49:12-07:00
Forum: Users
Topic: Convert hdr image to non-hdr image
Replies: 7
Views: 220

Re: Convert hdr image to non-hdr image

dkrikun0 wrote:The conversion needs to be "viewer-friendly", that is the resulting image needs be contrast, without cutting off information etc.
I don't really understand your question. Perhaps "-auto-level" does what you want.
by snibgo
2019-06-24T08:31:58-07:00
Forum: Users
Topic: Convert hdr image to non-hdr image
Replies: 7
Views: 220

Re: Convert hdr image to non-hdr image

It seems that IM is writing rose.pgm as 32 bits/channel. (Just one channel, of course.) Gimp can't read the result.

If we insert "-depth 16" before writing, Gimp can read it fine.

Does that help?
by snibgo
2019-06-24T07:44:29-07:00
Forum: Users
Topic: Convert hdr image to non-hdr image
Replies: 7
Views: 220

Re: Convert hdr image to non-hdr image

Please link to a sample input.
by snibgo
2019-06-24T06:07:43-07:00
Forum: Users
Topic: [SOLVED] drawing line using relative coordinate like 'bottom left'
Replies: 6
Views: 207

Re: drawing line using relative coordinate like 'bottom left'

What version of IM, on what platform?

I suggest you use IM v7, with "magick". Then your parameters to circle can be "%[fx:...]" expressions.
by snibgo
2019-06-24T06:06:01-07:00
Forum: Users
Topic: Convert hdr image to non-hdr image
Replies: 7
Views: 220

Re: Convert hdr image to non-hdr image

Does "-auto-level" do what you want? If not, please link to a sample input, and say what output you want.