Watermark - not displaying?

302 views
Skip to first unread message

Heidi Hendry

unread,
May 19, 2015, 3:38:03 AM5/19/15
to resour...@googlegroups.com
RS Version: 7.1.6513
Watermark steps from the Wiki (and other posts in this Group)

1. ImageMagick must be installed.
DONE

2. Add the following to your config.php:
$watermark="gfx/watermark.png";
This will use the default watermark of 'ResourceSpace'. You can use your own and alter the above line to point to it. It should be a PNG file, suitably transparent so that your photo is visible underneath.The following guidelines show how to enable watermarks.
DONE

3.Watermarks are only created when the line above exists in your config.php.
DONE - can confirm they are created, as have seen the files in the filestore.

4. Set Team Centre->System Setup->Download/Preview Sizes->Screen to "Allow Restricted Download" (to allow download of screen sized watermarks)
?? New RS System Setup may not have this feature? I couldn't see it anywhere

5. run pages/tools/update_previews.php?previewbased=true to create watermarks
You should recreate previews of all resources if you are enabling watermarks and there are already resources in your system.
DONE

6.
User Groups need the 'w' permission to see watermarks.
DONE
7. Resources you want watermarked must be Restricted to the group
DONE
8.
Admins don't see watermarks, so test the General User's view
DONE

But cannot see watermark on the preview. 

Suggestions?

Allison Stec

unread,
May 19, 2015, 9:18:14 AM5/19/15
to ResourceSpace
With the updated team center/system setup area the new location should be...

Team Center -> System -> Manage Sizes; then click "Edit" for screen and check "Allow restricted download"

To see what's causing issues, I'd set $debug_log=true and recreate previews for one resource. You can then search the debug log for "create_previews" and see if there are any error messages.

Allison Stec
Senior Developer & Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Heidi Hendry

unread,
May 19, 2015, 9:38:44 PM5/19/15
to resour...@googlegroups.com
Thanks for your response Allison, much appreciated.

I have now set:

Team Center -> System -> Manage Sizes; then click "Edit" for screen and check "Allow restricted download"

The Debug log is running. Searching for "create_previews" shows me that the previews are being created (which I knew because the files are in the filestore with the watermark on them).

The issue is that when logged on as a user, who is not an Admin, but IS a member of a group with "w" permission, my assumption was that the preview would show the watermark. That is the step that is not working.

2015-05-20 08:34:07 create_previews(ref=227,thumbonly=,extension=jpg,previewonly=,previewbased=,alternative=-1,ingested=)
2015-05-20 08:34:07 SQL: update resource set file_checksum='' where ref='227'
2015-05-20 08:34:07 SQL: update resource set preview_tweaks = '0|1' where ref = '227'
2015-05-20 08:34:07 File source is C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg
2015-05-20 08:34:07 create_previews_using_im(ref=227,thumbonly=,extension=jpg,previewonly=,previewbased=,alternative=-1,ingested=)
2015-05-20 08:34:07 CLI command: "c:/imagemagick\identify.exe" -format %wx%h "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0]
2015-05-20 08:34:07 CLI output: 1024x768
2015-05-20 08:34:07 CLI errors: 
2015-05-20 08:34:07 SQL: select * from preview_size  order by width desc, height desc
2015-05-20 08:34:07 Contemplating hpr (sw=1024, tw=999999, sh=768, th=999999, extension=jpg)
2015-05-20 08:34:07 Contemplating lpr (sw=1024, tw=2000, sh=768, th=2000, extension=jpg)
2015-05-20 08:34:07 Contemplating scr (sw=1024, tw=1100, sh=768, th=800, extension=jpg)
2015-05-20 08:34:07 Contemplating pre (sw=1024, tw=450, sh=768, th=450, extension=jpg)
2015-05-20 08:34:07 Generating preview size pre to C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227pre_a3b04b530472931.jpg
2015-05-20 08:34:07 CLI command: "c:/imagemagick\convert.exe" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0] +matte -flatten -quality 90  +matte -strip -colorspace sRGB  -resize 450x450">" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227pre_a3b04b530472931.jpg"
2015-05-20 08:34:07 CLI output: 
2015-05-20 08:34:07 CLI errors: 
2015-05-20 08:34:07 CLI command: "c:/imagemagick\convert.exe" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 450x450">" -tile "C:\inetpub\wwwroot\resourcespace\include/../plugins/unishanoi_styling/gfx/UNISwatermark.png" -draw "rectangle 0,0 450,450" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227pre_wm_bcef879034ebfa3.jpg"
2015-05-20 08:34:07 CLI output: 
2015-05-20 08:34:07 CLI errors: 
2015-05-20 08:34:07 Contemplating thm (sw=1024, tw=150, sh=768, th=150, extension=jpg)
2015-05-20 08:34:07 Generating preview size thm to C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227thm_8f699a6807ef88d.jpg
2015-05-20 08:34:07 CLI command: "c:/imagemagick\convert.exe" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0] +matte -flatten -quality 90  +matte -strip -colorspace sRGB  -resize 150x150">" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227thm_8f699a6807ef88d.jpg"
2015-05-20 08:34:08 CLI output: 
2015-05-20 08:34:08 CLI errors: 
2015-05-20 08:34:08 CLI command: "c:/imagemagick\convert.exe" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 150x150">" -tile "C:\inetpub\wwwroot\resourcespace\include/../plugins/unishanoi_styling/gfx/UNISwatermark.png" -draw "rectangle 0,0 150,150" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227thm_wm_312ec697f72818c.jpg"
2015-05-20 08:34:08 CLI output: 
2015-05-20 08:34:08 CLI errors: 
2015-05-20 08:34:08 Contemplating col (sw=1024, tw=75, sh=768, th=75, extension=jpg)
2015-05-20 08:34:08 Generating preview size col to C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227col_b68a69335a0ff87.jpg
2015-05-20 08:34:08 CLI command: "c:/imagemagick\convert.exe" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0] +matte -flatten -quality 90  +matte -strip -colorspace sRGB  -resize 75x75">" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227col_b68a69335a0ff87.jpg"
2015-05-20 08:34:08 CLI output: 
2015-05-20 08:34:08 CLI errors: 
2015-05-20 08:34:08 CLI command: "c:/imagemagick\convert.exe" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227_8ddc965606a2b67.jpg"[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 75x75">" -tile "C:\inetpub\wwwroot\resourcespace\include/../plugins/unishanoi_styling/gfx/UNISwatermark.png" -draw "rectangle 0,0 75,75" "C:\inetpub\wwwroot\resourcespace\include/../filestore/2/2/7_c786acc2c29b031/227col_wm_ef303143701cf1c.jpg"
2015-05-20 08:34:08 CLI output: 
2015-05-20 08:34:08 CLI errors: 

Allison Stec

unread,
May 20, 2015, 8:55:15 AM5/20/15
to ResourceSpace
First, set this in the config override for your non-admin group: $watermark_open=true;    This will turn on watermarks for open resources as well as restricted, so all resources shown should have a watermark. Do watermarks show now?

Also, if you use your browser to inspect a preview image does the img src path have "_wm_" in it? If it does, you may need to tweak your custom watermark. It used to be that a smaller watermark worked better because it would always show, but if the watermark was larger than the preview size being generated it might not even show up.

If the preview image doesn't have "_wm_" in the path, please post the permissions for the group.

Allison Stec
Senior Developer & Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

Ketan Hirpara

unread,
Sep 5, 2017, 12:37:53 PM9/5/17
to ResourceSpace
Can anyone tell me, how can i make users to download only images with watermark?

I need current process like user requests for resource, after admin approves request then user can download it. I need this and after admin approves request, user still should be able to download only watermarked image not original image.

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages