Page 1 of 2
Watermarking Transparent PSD Image
Posted: 2016-12-06T11:29:29-07:00
by pssvarma8881
Hi ,
We are looking for commands for watermarking PSD Image .
Version :
ImageMagick 6.9.0-0 Q16 x64 2014-11-14
Sample Image :
https://1drv.ms/u/s!AuiGMeVn7efEgQSndt9h7uhjEOOy
Thanks in Advance .
Re: Watermarking Transparent PSD Image
Posted: 2016-12-06T15:58:07-07:00
by pssvarma8881
Currently i am using below command
composite -compose Plus -tile -geometry +75 -watermark 80 -gravity center %watermarkPath% %_vartest%[0] %_finalimageName%
image is not completely watermarked on the background for water marked PSD.Need help in watermarking complete background for a transparent PSD
Thanks in advance .
Re: Watermarking Transparent PSD Image
Posted: 2016-12-06T17:17:04-07:00
by fmw42
Please provide the watermark image.
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T12:33:15-07:00
by pssvarma8881
Here is the Watermarked PSD :
https://1drv.ms/u/s!AuiGMeVn7efEgQWBboGoYP6eU_qy
Source PSD Below
https://1drv.ms/u/s!AuiGMeVn7efEgQSndt9h7uhjEOOy
1 .We want to watermark the background as well along with image .
2 .is there an option to water mark the image with Gray (non white) ?
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T15:08:39-07:00
by fmw42
I need the image that is to be used for the watermark, not the result of the watermark processing.
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T15:48:48-07:00
by pssvarma8881
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T16:03:19-07:00
by fmw42
What format do you want the output? If the output is PSD, then IM probably can only save that as a flattened result. IM does not have sophisticated capabilities to handle layer groups and multiple transparency layers. I will test and get back.
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T16:42:20-07:00
by pssvarma8881
We want Output as PSD .
Thanks for your help.
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T17:03:23-07:00
by fmw42
I can only create a flattened PSD on output. Watermarking a transparent image is not quite as easy as opaque ones.
# line 1: read input PSD and convert from CMYK to sRGB and read watermark image
# line 2: save the alpha channel and make sure it is full dynamic range
# line 3: create a gray image of the amount of gray you want
# line 4: extract the alpha channel from your watermark image, since all the text is in the alpha channel
# line 5: composite the sRGB input, gray image and mask from water mark image with alpha off on all images
# line 6: deleete the temp clones and put the original alpha channel back onto the watermarked image
# line 7: save the output (optionally you can add a profile)
# note you can replace -colorspace sRGB will an sRGB profile using -profile (for better color quality
Code: Select all
convert \( W_MYAG_F7956_14021_001X.psd[0] -colorspace sRGB \) LimitedUsePSD.png \
\( -clone 0 -alpha extract -auto-level \) \
\( -clone 1 -fill "gray(50%)" -colorize 100 \) \
\( -clone 1 -alpha extract -auto-level \) \
\( -clone 0 -clone 3 -clone 4 -alpha off -gravity center -compose over -composite \) \
-delete 0,1,3,4 +swap -alpha off -compose over -compose copy_opacity -composite \
result.psd
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T18:05:01-07:00
by pssvarma8881
Hi ,
I tried to run the same command from my Windows command prompt .I am seeing file not found though file located at same location
Here is what i tried
D:\>convert \(test.psd[0] -colorspace sRGB\) LimitedUsePSD.png ( -clone 0 -alpha
extract -auto-level ) ( -clone 1 -fill "gray(50%)" -colorize 100 ) ( -clone 1 -
alpha extract -auto-level ) ( -clone 0 -clone 3 -clone 4 -alpha off -gravity cen
ter -compose over -composite ) -delete 0,1,3,4 +swap -alpha off -compose over -c
ompose copy_opacity -composite test2.psd
convert.exe: unable to open image `\(test.psd': No such file or directory @ erro
r/blob.c/OpenBlob/2709.
convert.exe: unrecognized image colorspace `sRGB\)' @ error/convert.c/ConvertIma
Re: Watermarking Transparent PSD Image
Posted: 2016-12-07T18:41:36-07:00
by fmw42
In my command, change all \( ... \) to ( ... ) and change end of line \ to ^
You left in one pair \( ... |) \ right after convert and all ( and ) must have spaces on either side.
If you put this in a bat file, the % must also go to %%, I think.
See
http://www.imagemagick.org/Usage/windows/
Re: Watermarking Transparent PSD Image
Posted: 2016-12-08T11:55:15-07:00
by pssvarma8881
Hi ,
Thanks for your help
.
1. Is there a way to watermark complete image including transparent background ? .Currently the given command is watermarking partial image ,and not watermarking transparent background
Re: Watermarking Transparent PSD Image
Posted: 2016-12-08T12:18:22-07:00
by fmw42
You either have to stretch your water mark image to the same size as the background image or you have to tile it out. If tiling, you may get discontinuities in the tiled result if the watermark image is not set up properly in size for tiling.
Are you saying that you want the watermark to show in the transparent areas? That means that the alpha channel needs to be changes as well.
Please confirm which way you want to deal with filling the watermark image out to full size of background.
Re: Watermarking Transparent PSD Image
Posted: 2016-12-08T15:27:57-07:00
by pssvarma8881
Our requirement is to watermark the complete image along with Transparent areas.
Re: Watermarking Transparent PSD Image
Posted: 2016-12-08T15:29:07-07:00
by pssvarma8881
Our requirement is to watermark the complete image along with Transparent areas with tile.