Search found 9593 matches

by snibgo
2018-01-18T14:24:43-07:00
Forum: Consulting
Topic: PAID: PDF color profil settings
Replies: 7
Views: 454

Re: PAID: PDF color profil settings

DarrenPotter wrote:Our print company gave us 3 options in descending order of preference:

1) To embed an sRGB ICC profile in the image
That seems the best option. Extract the image with pdfimages, assign an sRGB profile, and send that to the print company.
by snibgo
2018-01-18T12:01:19-07:00
Forum: Consulting
Topic: PAID: PDF color profil settings
Replies: 7
Views: 454

Re: PAID: PDF color profil settings

This seems like the usual problem of embedding raster images inside PDF files. I currently can't download large files (or anything much). Does the PDF have only one image? If so, I would extract the image with pdfimages. Then look at the image: it might by CMYK or not, with or without an embedded IC...
by snibgo
2018-01-18T11:56:02-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 11
Views: 269

Re: looking for docs for PRINT command

On Unix, printers are devices which are files, so it should be easy, maybe.

On Windows, IrfanView works fine, eg:

Code: Select all

i_view64 toes.png /print
by snibgo
2018-01-18T04:13:21-07:00
Forum: Users
Topic: Make Pixel Transparent Based on Level
Replies: 1
Views: 117

Re: Make Pixel Transparent Based on Level

What version of IM on what platform? I'll assume v6 on Windows CMD. I would like to be able to make all pixels transparent that are in the bottom 50% of the brightness range.... top 50%... convert toes.png ( +clone -colorspace Gray -fuzz 50% -transparent Black ) -compose CopyOpacity -composite imgA....
by snibgo
2018-01-17T17:00:30-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 11
Views: 269

Re: looking for docs for PRINT command

What I mean is that anywhere you can put "-format XYZ -write info:", you can instead put "-print XYZ". For example:

Code: Select all

f:\prose\PICTURES>convert rose: -format "%wx%h\n" -write info: x.png
70x46

f:\prose\PICTURES>convert rose: -print "%wx%h\n" x.png
70x46
by snibgo
2018-01-17T15:12:11-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 11
Views: 269

Re: looking for docs for PRINT command

"-print" is used with a meaning as in C "printf()". It sends text to the console. It isn't concerned with physically printing on paper. "-print XYZ" is short for "-format XYZ -write info:".
by snibgo
2018-01-17T04:39:14-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 2343

Re: How to find ticket and crop it into a single image?

I feel that I'm missing something simple, but important, at last stage. Yes. The first stage finds four lines, giving the coordinates of each end. Then you distort the image to move one end of the first line to the other end, and so on for the other lines. That makes no sense. A better idea is to f...
by snibgo
2018-01-17T02:50:56-07:00
Forum: Users
Topic: Resizing a Gray TIFF file - conversion to linear colorspace required?
Replies: 2
Views: 108

Re: Resizing a Gray TIFF file - conversion to linear colorspace required?

You mentioned the need to sharpen after downsizing. That should have triggered me to mention the work by Nicolas Robidoux and others, which does both operations together, by blending a linear resize with one with a further shift of gamma 3. The results are excellent. See Resampling with halo minimiz...
by snibgo
2018-01-16T21:57:25-07:00
Forum: Users
Topic: Resizing a Gray TIFF file - conversion to linear colorspace required?
Replies: 2
Views: 108

Re: Resizing a Gray TIFF file - conversion to linear colorspace required?

To be technically correct, you should resize in linear colorspace. Does it make any difference? I doubt it. The difference will show only where you have very high frequency data (ie rapidly changing pixels). I haven't tried the new "-colorspace LinearGray" yet, but that's probably the correct way. D...
by snibgo
2018-01-15T08:38:25-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 13
Views: 973

Re: MagickSetImageCompression not working

Here is a corrected program (for IM v6, not 7): #include <windows.h> // #pragma hdrstop // #pragma argsused #include "wand\MagickWand.h" int main(int argc, char* argv[]) { MagickWand *l_wand = NULL; MagickWandGenesis(); l_wand = NewMagickWand(); MagickReadImage( l_wand, "rose:"); MagickSetImageDepth...
by snibgo
2018-01-15T08:13:41-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 13
Views: 973

Re: MagickSetImageCompression not working

Re-read my post. I told you how to do it.
by snibgo
2018-01-15T06:26:15-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 13
Views: 973

Re: MagickSetImageCompression not working

The porting guide refers to the number of channels in memory, not in files.

Resizing will almost certainly introduce new colours, so your quantize is in the wrong place.

Similarly, you set the image type before doing any processing. It should be at the end, just before writing.
by snibgo
2018-01-13T17:02:13-07:00
Forum: Users
Topic: Check if an image has an alpha channel with IMv7
Replies: 9
Views: 244

Re: Check if an image has an alpha channel with IMv7

The "check last character is 'a'" method isn't bomb-proof, eg: f:\web\im>%IM%convert rose: -colorspace OHTA -format "%[channels]" info: ohta f:\web\im>%IM%convert rose: -colorspace OHTA -alpha set -format "%[channels]" info: ohtaa However, the only format that can record OHTA (as far as I know) is M...
by snibgo
2018-01-13T02:01:06-07:00
Forum: Users
Topic: Recolor Image and maintain shading
Replies: 7
Views: 255

Re: Recolor Image and maintain shading

The method I show keeps the same lightness. However, the finished result might seem lighter or darker, depending on various factors. My command include a sequence like: -colorspace HCL -channel R -evaluate set 75% +channel -colorspace sRGB This converts to HCL, sets the Hue channel to 75%, and conve...
by snibgo
2018-01-12T22:30:41-07:00
Forum: Users
Topic: Recolor Image and maintain shading
Replies: 7
Views: 255

Re: Recolor Image and maintain shading

I would work in HCL (Hue, Chroma, Lightness) colorspace. You want to change hues, without changing chroma or lightness? Yes? Red is at hue=0 degrees. Purple is at hue=75%. To make all the colour red: convert pile_resized.png -colorspace HCL -channel R -evaluate set +channel -colorspace sRGB r.png In...