Search found 11821 matches

by snibgo
2019-07-21T17:25:35-07:00
Forum: Users
Topic: How do I use ImageMagick to warp image on a baseball cap
Replies: 11
Views: 226

Re: How do I use ImageMagick to warp image on a baseball cap

Yes. In absolute displacement maps, 50% at any pixel means "move the pixel that was at 50% of the width or height to this location". And 0% at any pixel means "move the pixel that was at the top or left to this location". An identity absolute displacement map has #000 at top left, #f00 top right, #0...
by snibgo
2019-07-21T15:43:10-07:00
Forum: Users
Topic: How do I use ImageMagick to warp image on a baseball cap
Replies: 11
Views: 226

Re: How do I use ImageMagick to warp image on a baseball cap

The technique works with absolute, not relative, spatial displacement maps. We start with the identity absolute displacement map. We then distort that using Photoshop or whatever gives the result we need. The result is a distorted absolute displacement map, and this can be used with IM to distort an...
by snibgo
2019-07-21T13:01:31-07:00
Forum: Users
Topic: How do I use ImageMagick to warp image on a baseball cap
Replies: 11
Views: 226

Re: How do I use ImageMagick to warp image on a baseball cap

Is it there any way to create a "identity displacement map " for a certain object like baseball cat, mug,... The identity displacement map represents zero distortion. You then distort that using any software you want onto any 3D object you want (mug, baseball cap, mug, tee-shirt, or whatever). Then...
by snibgo
2019-07-21T10:28:10-07:00
Forum: Users
Topic: Unable to generate PNG from SVG
Replies: 2
Views: 58

Re: Unable to generate PNG from SVG

Why do you have "newImage"? What is the point of that?
by snibgo
2019-07-21T03:14:41-07:00
Forum: Users
Topic: How do I use ImageMagick to warp image on a baseball cap
Replies: 11
Views: 226

Re: How do I use ImageMagick to warp image on a baseball cap

Please don't multi-post. I have removed your other post. You want to distort an image and paint that on your object. If you can do this once with any software on any computer, you can repeat the task using just ImageMagick. The trick is to do it once using a special image called an "identity displac...
by snibgo
2019-07-20T01:37:02-07:00
Forum: Users
Topic: Disable transparent background
Replies: 9
Views: 312

Re: Disable transparent background

In Windows, PDF files can be opened with Microsoft Wordpad to view the file as raw text. I expect Unix has similar tools. I don't know what "as they are" means. If the PDF has a cropbox, but also has content outside the cropbox, which version is the "real" one? The content might be registration mark...
by snibgo
2019-07-19T15:53:53-07:00
Forum: Users
Topic: Captioning Images
Replies: 7
Views: 328

Re: Captioning Images

I'm not a bash expert, but you are calling the script with one parameter, "$SHELL", which translates on my computer to "/bin/bash". That is $1. Then you set the variable "file" to $1, and try to find its size etc, as if it was an image file. But it's not. Try calling the script with the name of an i...
by snibgo
2019-07-19T14:40:32-07:00
Forum: Users
Topic: Disable transparent background
Replies: 9
Views: 312

Re: Disable transparent background

Flokker wrote:There isn't anything cropped.
I suspect there is, and that if you read the PDF with a text editor you will see a "/CropBox" specification.
by snibgo
2019-07-19T09:41:05-07:00
Forum: Users
Topic: how to achieve watercolour map effect?
Replies: 6
Views: 219

Re: how to achieve watercolour map effect?

Open Street Map (OSM) data is available in vector format. A scanned watercolour image is raster data, ie pixels. Raster data can be used to fill in areas of a vector image. I don't use OSM as a developer. Perhaps it is available as SVG. If so, you have the choice of (a) tweaking the SVG to include t...
by snibgo
2019-07-19T08:48:55-07:00
Forum: Users
Topic: how to achieve watercolour map effect?
Replies: 6
Views: 219

Re: how to achieve watercolour map effect?

I suspect the effect shown at http://maps.stamen.com/watercolor/#12/37.7706/-122.3782 of water and land is from scanned watercolor images.
by snibgo
2019-07-19T08:41:49-07:00
Forum: Users
Topic: Disable transparent background
Replies: 9
Views: 312

Re: Disable transparent background

You might try one of the pdf defines, eg use-trimbox. See http://www.imagemagick.org/script/comma ... php#define
by snibgo
2019-07-19T08:01:38-07:00
Forum: Users
Topic: Disable transparent background
Replies: 9
Views: 312

Re: Disable transparent background

You have "a frame of transparent around the rest of the image". What do you want instead? You might "-trim" to remove it. Or flatten against a white background (or any colour you want): "-background white -layers flatten".
by snibgo
2019-07-19T07:36:13-07:00
Forum: Users
Topic: Convert image colorspace to rgb from cmyk without affecting image color contrast or color values
Replies: 22
Views: 3770

Re: Convert image colorspace to rgb from cmyk without affecting image color contrast or color values

delegate library support not built-in `input.jpeg' (LCMS) IM is telling you that it doesn't have LCMS, which it needs for "-profile". Confirm this with: convert -version I get: Version: ImageMagick 6.9.9-50 Q16 x64 2018-06-02 http://www.imagemagick.org Copyright: Copyright (C) 1999-2015 ImageMagick...
by snibgo
2019-07-19T06:14:06-07:00
Forum: Users
Topic: Conversion from sRGB to CMYK: difference between JPEG and PDF
Replies: 4
Views: 191

Re: Conversion from sRGB to CMYK: difference between JPEG and PDF

What software are you using to view the results? Some software will ignore embedded profiles, perhaps assuming the encoding is some "standard" like sRGB. Some software (such as Firefox) has settings to control this. For PDFs, I view with Adobe Acrobat Reader. I don't know how good that is with profi...
by snibgo
2019-07-19T05:59:19-07:00
Forum: Users
Topic: how to achieve watercolour map effect?
Replies: 6
Views: 219

Re: how to achieve watercolour map effect?

In the example, the water is replaced by a tiled image. We can see the repeated pattern.

Where does the pattern come from? I would do it with fractal noise (aka Perlin noise). See Fractal noise . But I expect a simpler method, probably based on plasma, could work.