Search found 12867 matches

by snibgo
2020-03-26T05:43:40-07:00
Forum: Users
Topic: Converting SVG to Image ignores text
Replies: 9
Views: 247

Re: Converting SVG to Image ignores text

I suppose helvetica is a fall-back font if requested fonts are not available. I suppose you have no fonts available.

I don't know IMagick and PHP so can't advise. I notice that your config.php has: "--with-fontpath=" Perhaps that fontpath should be defined.
by snibgo
2020-03-26T00:38:50-07:00
Forum: Consulting
Topic: PAID: convert any type of image to flattened RGB tiff
Replies: 4
Views: 195

Re: PAID: convert any type of image to flattened RGB tiff

The output image will retain the input images embedded profile. Why? A profile defines the colorimetric interpretation of the pixel values. If the pixels are converted to a new profile, that new profile should replace the old one. If it doesn't, then software will mis-interpret pixel values. Yes, I...
by snibgo
2020-03-25T21:12:31-07:00
Forum: Consulting
Topic: PAID: convert any type of image to flattened RGB tiff
Replies: 4
Views: 195

Re: PAID: convert any type of image to flattened RGB tiff

It isn't a simple project. Should all the outputs be a single colorspace? If so, what? Perhaps sRGB. Or should some outputs be in different colorspaces? I guess you want the outputs to contain embedded profiles? Perhaps you want the output TIFFs to be lossless-compressed. Or perhaps you want uncompr...
by snibgo
2020-03-25T20:50:07-07:00
Forum: Users
Topic: Convert Windows batch script to C#
Replies: 3
Views: 105

Re: Convert Windows batch script to C#

I suggest you read C# documentation, for example at https://docs.microsoft.com/en-us/dotnet/csharp/
by snibgo
2020-03-25T19:13:28-07:00
Forum: Users
Topic: Silver Efex Effect with Imagemagick?
Replies: 6
Views: 173

Re: Silver Efex Effect with Imagemagick?

The examples shown seem to have enhanced local contrast. There are many ways to do that with IM, for example "-unsharp" with a large sigma. See also examples at Maximise local contrast.
by snibgo
2020-03-25T18:03:15-07:00
Forum: Users
Topic: Convert Windows batch script to C#
Replies: 3
Views: 105

Re: Convert Windows batch script to C#

Where is the difficulty? Your program could simply have a loop, and build the "composite" command and call it within the loop.
by snibgo
2020-03-25T16:01:53-07:00
Forum: Users
Topic: Converting SVG to Image ignores text
Replies: 9
Views: 247

Re: Converting SVG to Image ignores text

This converts fine for me (but falls back to default fonts as I don't have the fonts specified), using IM v7.0.8-64 and Inkscape 0.91, or just IM with "msvg:" prefix.
by snibgo
2020-03-25T10:11:02-07:00
Forum: Users
Topic: howto create a color-coded perspective image from heightmap (heightfield) BMP or PNG?
Replies: 3
Views: 119

Re: howto create a color-coded perspective image from heightmap (heightfield) BMP or PNG?

The two images do not seem to correspond. (1) They are different sizes. (2) Objects seem to overlap in the second image but not the first. I suspect the first image is not a true heightmap, where lighter pixels represent closeness to the camera. For example, the middle object of the column of three ...
by snibgo
2020-03-24T17:10:07-07:00
Forum: Users
Topic: Unable to get -subimage-search to work
Replies: 2
Views: 143

Re: Unable to get -subimage-search to work

Xyresic wrote: compare.exe: images too dissimilar `haystack.png' @ error/compare.c/CompareImageCommand/1170.
For that problem, use "-dissimilarity-threshold 1". See https://www.imagemagick.org/script/comm ... -threshold
by snibgo
2020-03-24T02:58:11-07:00
Forum: Bugs
Topic: Cannot save GIFs with ImageMagick and Matplotlib
Replies: 3
Views: 187

Re: Cannot save GIFs with ImageMagick and Matplotlib

On "RGBA:", see https://www.imagemagick.org/script/formats.php . That is a raw (headerless) format needing "-size" and "-depth" to be set before reading the file. The command seems to be: convert -size 640x640 -depth 8 -delay 4.0 -loop 0 rgba:- projection3.gif ... and that looks okay to me. You can ...
by snibgo
2020-03-24T01:08:29-07:00
Forum: Users
Topic: Extract Clipping Image
Replies: 16
Views: 742

Re: Extract Clipping Image

is it possible to combine both commands into single command? Yes, you can put all those options in a single command. Any specific reason to keep result in PNG ? You didn't say what output file you wanted, so I used PNG as an example. The image is flattened so has no transparency, so JPG could be us...
by snibgo
2020-03-23T18:27:12-07:00
Forum: Users
Topic: font rendering
Replies: 12
Views: 349

Re: font rendering

The task is to draw the text identically as in normal Windows programs. But normal Windows programs will use anti-aliasing, depending on how the computer is configured. For example, with Notepad on my Windows 8.1 laptop, an enlarged screenshot: http://snibgo.com/imforums/text_notepad.png If you wan...
by snibgo
2020-03-23T15:04:19-07:00
Forum: Users
Topic: resize (bat) script crash
Replies: 8
Views: 324

Re: resize (bat) script crash

The BAT script that you showed cannot fail with that error.

Please show your complete script.

Your script contains five commands. Which one has that error? What happens with the other commands?
by snibgo
2020-03-23T04:34:30-07:00
Forum: Users
Topic: Extract Clipping Image
Replies: 16
Views: 742

Re: Extract Clipping Image

Those are not two complete commands. Commands would start with "magick", and would need input and output files. I guess you want them in the opposite order? Maybe: magick 1584707760age.jpg -alpha transparent -clip -alpha opaque -profile sRGB.icc -background Gray -layers Flatten out1.png magick out1....