Search found 12669 matches

by snibgo
2020-02-11T11:29:47-07:00
Forum: Users
Topic: Extracting sprites/images from a bigger image
Replies: 17
Views: 566

Re: Extracting sprites/images from a bigger image

For the dust, I suggest you brush the glass of your scanner, and perhaps clean it.

Isolating a background is easier if it is a different colour to the foreground. For example, place a sheet of red paper over the jigsaw pieces before scanning.
by snibgo
2020-02-11T11:25:43-07:00
Forum: Magick.NET
Topic: Determine Final File Size
Replies: 3
Views: 176

Re: Determine Final File Size

TIFF has a choice of no compression, or JPEG compression, or Zip compression etc. PDF is simply a wrapper around a raster image format, which could be compressed with JPEG or Zip or whatever. For good quality JPEG compression of ordinary colour photos, I need about 0.3 to 0.5 bytes per pixel. So a 1...
by snibgo
2020-02-11T10:06:58-07:00
Forum: Magick.NET
Topic: Determine Final File Size
Replies: 3
Views: 176

Re: Determine Final File Size

If the generated files are uncompressed, the size is easily calculated from the number of pixels. For JPG, you can specify a maximum size, and IM will find the quality that delivers that size. Otherwise, the easiest method is to create the file and find its size. I suppose your application might est...
by snibgo
2020-02-11T07:14:21-07:00
Forum: Users
Topic: Cache resources exhausted
Replies: 5
Views: 206

Re: Cache resources exhausted

jmspaggi wrote:I can decrease the limit, I can not increase it.
I suppose you did this with "-limit" options on the command line. Yes, these are only more restrictive. You need to change the limits in policy.xml.
by snibgo
2020-02-10T05:59:57-07:00
Forum: Users
Topic: Converting grayscale ppm to png or jpg gives only black and white
Replies: 10
Views: 327

Re: Converting grayscale ppm to png or jpg gives only black and white

Note that 256 is a very strange maxval, as that needs 9 bits. At one byte/channel/pixel, the expected maxval would be 255. But the file size and stated dimensions suggest there are 6 bytes total per pixel.
by snibgo
2020-02-10T02:24:57-07:00
Forum: Bugs
Topic: reading txt:
Replies: 1
Views: 103

reading txt:

Until recently, the TXT: "ImageMagick pixel enumeration" format did not need to list all the pixels to be successfully read. The behaviour that not all pixels needed to be given is documented eg in https://www.imagemagick.org/Usage/files/#txt : Reading TXT images is also valid. You do not need to de...
by snibgo
2020-02-10T00:21:32-07:00
Forum: Users
Topic: Chrome colored border on an Image
Replies: 3
Views: 166

Re: Chrome colored border on an Image

Chrome isn't a colour, but a metallic effect based on a 3D effect and lighting. See https://www.imagemagick.org/discourse-server/viewtopic.php?t=23904 and https://www.imagemagick.org/Usage/fonts/#metalic Instead of starting from a rasterised text image, you could start from a hollow rectangle like a...
by snibgo
2020-02-07T20:54:47-07:00
Forum: Bugs
Topic: -function polynomial
Replies: 1
Views: 113

-function polynomial

IM pre-built binary, v7.0.8-64, with HDRI, on Windows 8.1. "-function polynomial" is slightly but significantly wrong. For example: f:\web\im>%IMG7%magick xc:gray(50%) +write txt: -function polynomial 1,0 txt: # ImageMagick pixel enumeration: 1,1,65535,gray 0,0: (32767.5) #800080008000 gray(50%) # I...
by snibgo
2020-02-07T13:42:56-07:00
Forum: Users
Topic: Merging 2+ PAM GRAYSCALE_ALPHA images
Replies: 5
Views: 245

Re: Merging 2+ PAM GRAYSCALE_ALPHA images

The authority for IM's compositing is https://www.w3.org/TR/SVGCompositing/ . I have summarised the formulae in Compose operators de-mystified. Or perhaps mystified even further.
by snibgo
2020-02-07T13:12:25-07:00
Forum: Users
Topic: Resizing very large 16-bit TIFF messes up the grayscale.
Replies: 9
Views: 382

Re: Resizing very large 16-bit TIFF messes up the grayscale.

For an accurate globe, you need to know the scale of the DEM, eg a difference of one in pixel values represents a height of 1 metre or one foot or whatever. I can't see that info in the NASA page. Perhaps an email to someone will answer that. Assuming that 50% of QuantumRange reprepresents the areoi...
by snibgo
2020-02-07T10:24:55-07:00
Forum: Users
Topic: Convert .png image, fill white background and keep original name
Replies: 5
Views: 207

Re: Convert .png image, fill white background and keep original name

sakis_s wrote:This command fills white background perfectly but it's is for one photo,...
I suggest you put that command inside a shell "for" loop, so that loops through all your files, executing "magick" for each one.
by snibgo
2020-02-07T09:38:22-07:00
Forum: Users
Topic: Appending PNG to animated image
Replies: 6
Views: 286

Re: Appending PNG to animated image

Essem wrote:... but the text image would be automatically generated to accommodate for that size.
So your script knows how large the GIF and text images are. Those dimensions can be put into environment variables. So you can use %[fx:...] expressions for the "-extent" and "-set page".
by snibgo
2020-02-07T08:57:05-07:00
Forum: Users
Topic: JPG to PDF with exact A4 dimensions
Replies: 7
Views: 451

Re: JPG to PDF with exact A4 dimensions

kexec wrote:Isn't it possible to make this in a way that the image itself will not be touched, so the white border will not be part of the images but will be part only of the PDF?
Not with ImageMagick, no. When writing a pdf, IM wraps the page boundary tightly around the image.
by snibgo
2020-02-07T08:50:53-07:00
Forum: Magick.NET
Topic: How to convert single color (not image) CMYK with ICC profile to rgb.
Replies: 3
Views: 345

Re: How to convert single color (not image) CMYK with ICC profile to rgb.

As far as I know, the only way to do this is by creating an image, eg 1x1 pixel, and converting that.