Search found 12163 matches

by snibgo
2013-01-30T23:23:36-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 18414

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.
by snibgo
2013-01-30T22:42:09-07:00
Forum: Users
Topic: Overlapped images (what can you do with it)
Replies: 15
Views: 45548

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

Here's a standard deviation version of the entropy map, though I don't claim that it is better: "%IMG%convert" map_a4_south_jungle.png ^ ( +clone -channel RGB -separate +channel ^ -statistic standard-deviation 2x2 ^ -compose plus -flatten -compose over ) ^ -delete 0 ^ -threshold 50%% ^ map...
by snibgo
2013-01-30T15:09:06-07:00
Forum: Users
Topic: How to remove black background.
Replies: 15
Views: 18414

Re: How to remove black background.

A large fuzz does the trick.

Code: Select all

convert "2013-01-30 144035.jpg" -fuzz 60% -trim t.jpg
by snibgo
2013-01-30T05:39:18-07:00
Forum: Users
Topic: convert to icon darkens colours?
Replies: 6
Views: 5118

Re: convert to icon darkens colours?

Good stuff. I should add: IM has changed considerably since 6.4.0. In particular, it now assumes input and output images are sRGB ("non-linear"), but monochrome images (including separations) are RGB ("linear"). See any number of threads here where people have upgraded and the re...
by snibgo
2013-01-30T05:27:44-07:00
Forum: Users
Topic: convert to icon darkens colours?
Replies: 6
Views: 5118

Re: convert to icon darkens colours?

You can probably figure out for yourself more than I know, but the basic idea is: - If you are happy installing from source, that's fine. - The binary Windows release works fine under Cygwin. By default, it installs into "\program files (x86)" or somwhere horrible, but you can change that,...
by snibgo
2013-01-30T03:34:02-07:00
Forum: Users
Topic: convert to icon darkens colours?
Replies: 6
Views: 5118

Re: convert to icon darkens colours?

For some reason, the version of IM distributed with the current Cygwin is very dated, and somewhat broken in terms of RGB/sRGB. Junk it, and install the current version.
by snibgo
2013-01-29T21:20:51-07:00
Forum: Users
Topic: Smoothing an image but keeping it's sharp edges intact
Replies: 5
Views: 6412

Re: Smoothing an image but keeping it's sharp edges intact

On IM v6.7.9 and 6.8.1, on Windows 7, I get a different output to you. What version are you on? I am still unclear what edge result you want. The edges in your "manual" version (which I can get close to with "-morphology dilate disk:8") don't look like what I get with "-scal...
by snibgo
2013-01-29T17:16:52-07:00
Forum: Bugs
Topic: Error Converting Pdf
Replies: 1
Views: 2588

Re: Error Converting Pdf

The PDF converts fine on my laptop without any options. Each page is then 612x792 pixels. It fails with "-density 300". 115 pages: 56 M pixels. Density 300 will multiply this by about 4x4, or 892 M pixels. At 6 bytes per pixel, this needs 5 GB of memory. Is your computer, like mine, too sm...
by snibgo
2013-01-29T14:51:39-07:00
Forum: Users
Topic: resized (smaller) image files larger than original?
Replies: 7
Views: 20836

Re: resized (smaller) image files larger than original?

identify -verbose x.jpg or identify -format "%Q" x.jpg Never forget that reading then writing a jpeg will reduce its quality, so an image saved at 80 then read and saved as 80 again, will look worse after the second save. Also, the algorithm used by IM may differ from that used in the cam...
by snibgo
2013-01-29T10:11:49-07:00
Forum: Users
Topic: Missing coder IM_MOD_RL_SH_.dll
Replies: 2
Views: 3154

Re: Missing coder IM_MOD_RL_SH_.dll

I don't have this coder. What exact command results in the error? Perhaps the command is broken.
by snibgo
2013-01-29T10:09:32-07:00
Forum: Users
Topic: How can I test images for validity?
Replies: 1
Views: 2551

Re: How can I test images for validity?

You might try to convert each one. If the return code ("errorlevel" in Windows) is non-zero, or you don't get a resulting image, the input was broken.
by snibgo
2013-01-29T09:18:49-07:00
Forum: Users
Topic: Initilizing an image from a string intead of a file
Replies: 3
Views: 4683

Re: Initilizing an image from a string intead of a file

I don't know PHP, but it may allow piping, as in the command...

Code: Select all

convert - image.png
... where something has piped the SVG contents to stdout.
by snibgo
2013-01-29T08:39:20-07:00
Forum: Users
Topic: Best way to add gif over static image
Replies: 7
Views: 8202

Re: Best way to add gif over static image

I don't use PHP, and don't know what "GD" is. In general, using more tools (such as a web browser with PHP interpreter) will also use more resources.
by snibgo
2013-01-29T07:43:52-07:00
Forum: Users
Topic: Best way to add gif over static image
Replies: 7
Views: 8202

Re: Best way to add gif over static image

The delay is shown as {ticks}x{ticks-per-seconds}. See http://www.imagemagick.org/script/command-line-options.php#delay So "5x100" means 5 hundredths of a second, 0.05s. If all the frames have this delay, then you have a steady framerate, which is 100/5 = 20 frames per second. ffmpeg can c...
by snibgo
2013-01-29T07:18:43-07:00
Forum: Users
Topic: Best way to add gif over static image
Replies: 7
Views: 8202

Re: Best way to add gif over static image

Add the delays to get the total duration. Calculate the average delay for a framerate. GIF files don't have a steady framerate. To get an MP4 from a GIF, you should replicate frames as needed so each one is on screen for the same time. I don't know if ffmpeg can do this automatically. If not, you co...