Search found 19 matches

by dannygreer
2016-06-17T09:03:51-07:00
Forum: Users
Topic: OpenCL clEnqueueNDRangeKernel failed
Replies: 1
Views: 1687

OpenCL clEnqueueNDRangeKernel failed

I've compiled ImageMagick with OpenCL for use on an AWS g2x multi-gpu server and while testing a bash script that resizes and writes several versions of an image I'm getting a warning that I am not sure if I should be concerned about: convert: clEnv->library->clEnqueueNDRangeKernel failed ...
by dannygreer
2016-06-07T14:31:02-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

try this with the images from that reference convert logo.jpg \( -size 180x180 tile:wmark_image.png \) \ -compose dissolve -define compose:args=15 -composite result.png see the last section at http://www.imagemagick.org/script/compose.php for dissolve and the -define above it. Also http://www ...
by dannygreer
2016-06-07T13:18:04-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

try this with the images from that reference convert logo.jpg \( -size 180x180 tile:wmark_image.png \) \ -compose dissolve -define compose:args=15 -composite result.png see the last section at http://www.imagemagick.org/script/compose.php for dissolve and the -define above it. Also http://www ...
by dannygreer
2016-06-07T11:57:33-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

Here is my version of the working command in the form of a bash script. #!/bin/sh INPUTFILE=$1 MPRNAME='12345' WATERMARK=$2 ICCPROFILE='sRGB.icc' ORIGINALSIZE=`identify $INPUTFILE | awk -F ' ' '{print $3}'` HPRSIZE=$ORIGINALSIZE LPRSIZE='2000x2000' SCRSIZE='1100x1100' PRESIZE='450x450' THMSIZE ...
by dannygreer
2016-06-06T14:36:06-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

The transparent background on the watermark is dark on a light image and light on a dark image. Maybe the problem is with dissolve? I have tried modulate, but it was worse. One other issue I'm having with this code block is that I want the first hpr jpeg without watermark to happen before converting ...
by dannygreer
2016-06-06T14:11:34-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

I think I found a workaround, not sure its the most efficient way of working, but this got the result that I want except that the transparent watermark background is white: #!/bin/sh INPUTFILE='image.jpg' MPRNAME='12345' WATERMARK='MyWatermark.png' ICCPROFILE='sRGB.icc' ORIGINALSIZE=`identify ...
by dannygreer
2016-06-06T12:29:01-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

This will resize both input and watermarked images at the same time and write them out as a pair of jpgs marked -0 and -1. This is very efficient, but I lost control over the filenames and the ability to tweak the code to only output either just the watermarked, just the unwatermarked or both. I've ...
by dannygreer
2016-06-03T19:13:10-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

You can call them anything you want, but "[" and "]" have special meanings. "mpr:tmp[0]" would mean the zero'th image in the multi-image mpr named "tmp". Personally, I try to use meaningful names, and I use capital letters, eg "mpr:WMARK" and "mpr:FULL_SIZE". When I come back to that code after six ...
by dannygreer
2016-06-03T18:20:41-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

... if ImageMagick converts the vector to raster as soon as it loads it into memory ... Yes, that's how it works. Beware that some SVG files have lines "one pixel" thick, so these can disappear when resized down.[/quote] Sounds like I may as well just save a large png if they're immediately ...
by dannygreer
2016-06-03T17:29:15-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

You are resizing the image too many times. That costs you in speed. Snibgo is correct, overlay the watermark on the big image one time and use -scale to resize to each size you want and write to jpg output. No need to write to mpr:. If you don't want to scale the large image each time, then scale ...
by dannygreer
2016-06-03T17:24:38-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

So it seems you want to apply the watermark to the largest image, and then resize the result. Would that give you what you want? Then your command can be much simpler. Your input seems to be CMYK, but you want some output to be sRGB, and watermark.png is sRGB, so that would take some thought. I ...
by dannygreer
2016-06-03T14:22:00-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

I notice that CMYKimage.tif is resized to 1100x1100, then that is resized to 450x450, then that is resized to 150x150, and finally that is resized to 150x150. So the final image has been subjected to four resizes. You may get noticeably better quality if you resize CMYKimage.tif or an mpr of that ...
by dannygreer
2016-06-03T08:02:28-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

In IM 6, you will need to compute the size from the input image and pass that as a variable. In IM 7, you can do that in the same command. magick logo.jpg -size "%wx%h" tile:wmark_image.png \ -compose dissolve -define compose:args=15 -composite result.png If you need to compute number of tiles, etc ...
by dannygreer
2016-06-02T21:04:17-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

try this with the images from that reference convert logo.jpg \( -size 180x180 tile:wmark_image.png \) \ -compose dissolve -define compose:args=15 -composite result.png see the last section at http://www.imagemagick.org/script/compose.php for dissolve and the -define above it. Also http://www ...
by dannygreer
2016-06-01T19:00:26-07:00
Forum: Users
Topic: Multiple writes and pipes in a single command
Replies: 35
Views: 15220

Re: Multiple writes and pipes in a single command

No, I'm saying that reading an mpr before you've written it won't work. Perhaps you think that writing to an mpr in a convert, then reading that mpr in a composite, will work. It won't. Mpr is in memory, and private to that command. It sn't written to a disk file. Oh, I see now. Yes, I was trying ...