Search found 10152 matches

by snibgo
2018-05-25T12:39:24-07:00
Forum: Magick.NET
Topic: Output Colour Profile has opposite effect to desired
Replies: 1
Views: 64

Re: Output Colour Profile has opposite effect to desired

1. Printers usually have a printer driver, which is software that you send the image to. The driver expects its input to be a certain colorspace, or to have an embedded profile, or whatever. It send tweaks the image as required and send it to the printer. 2. You say "When I apply the colour profile ...
by snibgo
2018-05-25T07:00:31-07:00
Forum: Users
Topic: Interactive image editing with journaling
Replies: 2
Views: 53

Re: Interactive image editing with journaling

vinaad wrote:Is there any interactive editor which also outputs ImageMagick code which can then be saved for later re-use?
Yes, I've written a GUI for that. But I haven't published it (and I probably never will).
by snibgo
2018-05-25T04:13:19-07:00
Forum: Users
Topic: How to count/list all images in a dir tree with certain size or resolution?
Replies: 1
Views: 37

Re: How to count/list all images in a dir tree with certain size or resolution?

I would do it in a BAT script, like this: set TOTAL=0 set COUNT=0 for /R . %%F in (*.jpg) do ( for /F "usebackq" %%L in (`%IMG7%magick identify ^ -ping ^ -format "INC=%%[fx:w>=400||h>=200?1:0]" ^ %%F`) do set %%L set /A TOTAL += 1 set /A COUNT += !INC! ) echo TOTAL=%TOTAL% echo COUNT=%COUNT% This te...
by snibgo
2018-05-24T02:54:31-07:00
Forum: Users
Topic: How to make a "perfect grid" in BMP ? [solved]
Replies: 3
Views: 64

Re: How to make a "perfect grid" in BMP ?

wrote:BUT: when I create the grid, I get these odd squares where lines meet ...
If you show the command you used, perhaps we can diagnose the problem.

I draw grids with a script that draws a number of lines: Cylinders: grid.bat
by snibgo
2018-05-23T04:59:37-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 23
Views: 566

Re: How to remove transparency from a TIF and replace with white background

Roman80 wrote:But it does also not work for TIF files and also not with your modified CPP program.
Both programs work fine with TIFF files made by ImageMagick. Those files have an alpha channel.

They don't work on the TIFF file you linked because that doesn't have an alpha channel.
by snibgo
2018-05-22T19:01:07-07:00
Forum: IMagick
Topic: Paths and rectangles off by one pixel.
Replies: 8
Views: 166

Re: Paths and rectangles off by one pixel.

So, if a rectangle from 4,7 to 4,7 should be drawn (as a single pixel) then I guess that similarly a line from 4,7 to 4,7 should also be drawn (as a single pixel)?
by snibgo
2018-05-22T14:48:08-07:00
Forum: Users
Topic: Detecting "nearly" grayscale
Replies: 3
Views: 84

Re: Detecting "nearly" grayscale

The S channel of HLS (or C channel of HCL) gives the saturation (or chroma), on a scale of 0.0 to 1.0. If the mean of this is low, the image is close to gray. However, an image that is totally gray except for a few high-saturation pixels will be, on average, nearly gray, so you might prefer to find ...
by snibgo
2018-05-22T13:29:56-07:00
Forum: IMagick
Topic: Paths and rectangles off by one pixel.
Replies: 8
Views: 166

Re: Paths and rectangles off by one pixel.

For those of us who don't use IMagick, it would help if you showed us the output from your code. Note that when drawing a path from one pixel to an adjacent pixel, both pixels are drawn. But when drawing from one pixel to the same pixel, a "zero-length path", no pixels are drawn. As IM deals with pi...
by snibgo
2018-05-22T12:14:00-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 23
Views: 566

Re: How to remove transparency from a TIF and replace with white background

Roman80 wrote:With that info, is it possible to remove the transparency background?
Photoshop puts it there, and apparently only Photoshop can read it. If you want to remove it (rather than simply ignore it), Photoshop seems the best option.
by snibgo
2018-05-22T06:17:34-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 23
Views: 566

Re: How to remove transparency from a TIF and replace with white background

JPG can't record transparency, so a JPG image is always fully opaque. The C program that I showed (flatcol.c) uses argv[3] as the colour: flatcol toes_holed.png flatcol_out.png Blue flatcol_out.png is: http://snibgo.com/imforums/flatcol_out.png Hacking flat.cpp to use a third parameter: #include <me...
by snibgo
2018-05-22T04:34:23-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 23
Views: 566

Re: How to remove transparency from a TIF and replace with white background

Photoshop transparency is a different issue. I suggest you first get your program to work with PNG input and output. If it doesn't work with PNG, it won't work with TIFF. After converting toes_holed.png to a tiff, the program can flatten it, writing to tiff outputs. I don't use Photoshop. PS has a n...
by snibgo
2018-05-22T03:55:24-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 23
Views: 566

Re: How to remove transparency from a TIF and replace with white background

I added the include, and your CPP program compiled and ran but did not make the second file. I added checks for retVal, but the problem seemed to be that the second WriteImages used outputFile.c_str() but needed outputFile2.c_str(). My version of your CPP progam, flatc.cpp, is now: #include <memory>...
by snibgo
2018-05-21T09:59:56-07:00
Forum: Users
Topic: How to remove transparency from a TIF and replace with white background
Replies: 23
Views: 566

Re: How to remove transparency from a TIF and replace with white background

You asked for the functions in C-API. I gave you the ones for MagickCore, in the C language. Here's a sample progam that reads an input and writes an output flattened against any colour. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <MagickCore/MagickCore.h> int main(int argc,c...
by snibgo
2018-05-20T21:55:49-07:00
Forum: Bugs
Topic: Another "-stroke" and "label:" issue.
Replies: 2
Views: 100

Re: Another "-stroke" and "label:" issue.

Those problems don't occur on v7.0.7-28 on Windows 8.1.
by snibgo
2018-05-19T11:48:07-07:00
Forum: Users
Topic: Glueing images together
Replies: 2
Views: 135

Re: Glueing images together

"*.jpg" means "all the jpg files in that directory". If you have two files, this will be both of them. If you do that twice, you will get both images, twice. The obvious solution when you have just two files is to have "*.jpg" only once. If you have 40 files in the same directory that you want to co...