Search found 22442 matches

by fmw42
2018-01-18T01:10:38-07:00
Forum: Users
Topic: Rending high dpi svg then downsampling - sensible?
Replies: 1
Views: 24

Re: Rending high dpi svg then downsampling - sensible?

try

Code: Select all

convert -density 1800 image.svg -resize WxH image.png
where WxH is your desired PNG dimensions. This is a typical process for converting SVG to raster format. The density must come before reading the svg.
by fmw42
2018-01-17T22:33:47-07:00
Forum: Digital Image Processing
Topic: Detect White Spaces in Image and Drag Image
Replies: 1
Views: 20

Re: Detect White Spaces in Image and Drag Image

Can you provide an example picture of what you want to do? I am not sure I understand what the background contains and what the foreground image contains in terms of questions and answers. Imagemagick can overlay one image onto another. See https://www.imagemagick.org/Usage/compose/#compose. PHP Ima...
by fmw42
2018-01-17T20:23:49-07:00
Forum: Users
Topic: How to colorize an image?
Replies: 12
Views: 148

Re: How to colorize an image?

BTW... 0 is red as well as 255. You can see a color on bottom of value. Yes, that makes sense if the range is 0 to 255. In normal hue the range is 0 to 360 with 0 and 360 being the same. But that means your green color is slightly off as 75->106, but true green is 120. In Imagemagick green not rgb(...
by fmw42
2018-01-17T17:59:28-07:00
Forum: Users
Topic: How to colorize an image?
Replies: 12
Views: 148

Re: How to colorize an image?

For hue of 75 that would be 360*75/255=106, which is not green (120). The value of 106 might still be a shade of green. But your saturation seems way off. See: http://www.fmwconcepts.com/misc_tests/hue_chart2.png Are you sure about the range of saturation in your tool? Might range from -128 to 128 o...
by fmw42
2018-01-17T17:22:11-07:00
Forum: Users
Topic: Output file name
Replies: 7
Views: 100

Re: Output file name

Imagemagick uses the file system to list images to process, which is typically alphabetic order (same as typically is displayed by your OS) Try adding -print "%f\n" to your mogrify command to get it to list the filenames in order processed to the terminal (or redirect to a file) mogrify -thumbnail 2...
by fmw42
2018-01-17T17:04:18-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 7
Views: 94

Re: looking for docs for PRINT command

snibgo, thanks for the clarification. I had never used -print before.
by fmw42
2018-01-17T17:01:47-07:00
Forum: Users
Topic: How to colorize an image?
Replies: 12
Views: 148

Re: How to colorize an image?

In the OPs screen snap, the hue=75 and saturation=128, do not make a green color. This would be the equivalent of GeeMack's command using HSV values. convert untouched.png -colorspace gray -fill "hsv(120,255,127.5)" -tint 100 result.png You can see that from convert xc:"green" -colorspace hsv -depth...
by fmw42
2018-01-17T16:44:29-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 7
Views: 94

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:". Those do not work on my Mac (unix). Perhaps I am doing something wrong. This works: convert rose: -format "%w...
by fmw42
2018-01-17T14:24:27-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 7
Views: 94

Re: looking for docs for PRINT command

What is you want to print? Pictures or text. If pictures, then just save them to file and use some other tool such as your browser to print them to a printer. Sorry I have never used that print feature before for printing images. I know of no other documentation for that, but it might exist somewher...
by fmw42
2018-01-17T13:08:16-07:00
Forum: Users
Topic: Crop sprites for minimal spritesheet size
Replies: 18
Views: 257

Re: Crop sprites for minimal spritesheet size

Your red image is 256x256. Is that correct for what you want? How do you know where to put the trimmed flattened images (in white) inside the red larger 256x256 box? How would this help you crop the original image from the mask. You do not know the relative positions of the mask in relation to your ...
by fmw42
2018-01-17T11:40:42-07:00
Forum: Users
Topic: Crop sprites for minimal spritesheet size
Replies: 18
Views: 257

Re: Crop sprites for minimal spritesheet size

Your numbers do not make sense to me. The output sprites are 256x256. When you flatten them, they are still 256x256. You say the bounding box is 168x119 and then you say the output is 335x238. I do not understand these numbers. Which output do you want? The 4x4 grid of sprites or an animated image o...
by fmw42
2018-01-17T10:37:28-07:00
Forum: Consulting
Topic: PAID: PDF color profil settings
Replies: 2
Views: 58

Re: PAID: PDF color profil settings

Can you post an example PDF to some free hosting service that does not change the image format (such as dropbox.com) or zip the PDF before uploading. Then put the URL here so we can see what you have. If your input is a vector PDF, then Imagemagick will rasterize your PDF. Then if you try to save ag...
by fmw42
2018-01-17T10:30:39-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 2285

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

If you are using a Unix-like system, then you could try my script, unperspective, at my link below.

Image

unperspective -f 50 -A 99 receipt.jpg receipt_unpersp.jpg


Image
by fmw42
2018-01-17T10:18:13-07:00
Forum: Users
Topic: looking for docs for PRINT command
Replies: 7
Views: 94

Re: looking for docs for PRINT command

What is your IM version and platform? What do you want to print? What was your exact command line apart from the printing? What had you tried. Imagemagick uses -write to save images. It uses txt: to convert the image to list the pixels. It use -format ... info: to list certain meta data to the termi...
by fmw42
2018-01-16T17:32:51-07:00
Forum: Users
Topic: Crop sprites for minimal spritesheet size
Replies: 18
Views: 257

Re: Crop sprites for minimal spritesheet size

I still do not understand your issue. Do you want the montage to be 8x8 without specifying other than 8x. This works fine for me in IM 7.0.7.21 Q16 Mac OSX. Perhaps you need to upgrade IM. magick montage "test/sprite1.png" -duplicate 63 -trim +repage -geometry +0+0 -tile 8x -background none spritesh...