Hi, I created a text and image watermark and both won't apply to images that are uploaded or existing images even though the watermark shows on the preview image. What else do I need to do to get the watermark to show? I have no errors at all.

CommentFileSizeAuthor
#11 2_0_2.png77.54 KBdman
#10 1.png114.83 KBsupernova00
#10 2.png117.62 KBsupernova00
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

supernova00’s picture

Just wanted to add that this is with using GD2. I installed this module, enabled it, went to settings and added the image and text water mark (one at a time) and both don't work but work on the preview image. Is there any setting that I'm missing somewhere?

dman’s picture

I can't tell what you are missing yet.
Are you using imagefield, or how are you rendering the result? Do other effects work?
Are you sure you are looking at the right image at the location /sites/{sitename}/files/imagecache/{presetname}/{filepath}
Refresh?

supernova00’s picture

Yes, I am using imagefield. No, no other effects work.

Here is the location that the preview shows. This is the image that is shown after saving a new preset for rounded corners.
http://www.unfortunatehumor.com/sites/default/files/imagecache/blah/imag...

and the one for the two watermarks
http://www.unfortunatehumor.com/sites/default/files/imagecache/watermark...

Is there anything that I'm supposed to do after saving a preset? Like to make sure it gets applied to newly uploaded files?

Here is an image that should have two watermarks (one text and the other an image) and rounded corners but doesn't have anything,.

dman’s picture

Well, if no other effects work at all, I'd be worried.
Are you sure you've got imageAPI_GD turned on?

Imagecache provides a few buttons that allow you to flush the presets, although that happens automatically any time you make a change.

I still can't guess about this... The path at least looks right for the sample, although you can't see rounded corners on that example. :-)

supernova00’s picture

Well it kind of does have rounded corners. Using Firefox trunk I see black rounded corners on that preview.

Yes, I do have imageAPI_GD 6.x-1.6 enabled. Is there any other type of logging or any place I can look to see if there are in fact errors?

supernova00’s picture

I have my uploaded images saved to:
/sites/default/files/images/

and the image overlay is saved at:
/sites/default/files/

could that make a difference?

also the preview is saved here but I don't actually have that folder, I have a "addwatermark" folder with that image name.

http://www.unfortunatehumor.com/sites/default/files/imagecache/watermark...

dman’s picture

That example illustrates where the paths to imagecache-generated files are!
You are getting two overlays on your images when I look at:
http://www.unfortunatehumor.com/sites/default/files/imagecache/watermark...
(the top text position looks like it needs a tweak)

Imagecache is a cache and produces the derivative images on-demand. The files are not there until you look for them.

So is the actual problem not the text overlays (which ARE working) but the way that you link to it?
Editing the fields display settings under your content type lets you choose the imagecache preset to display.

supernova00’s picture

There is no field here /admin/content/node-type/image/fields to choose which overlay to use. Neither in the add new or add existing field.

"Imagecache is a cache and produces the derivative images on-demand. The files are not there until you look for them." What do you mean by this? I can't automatically add the watermark to my images upon upload?

Thank you for taking the time to work this out! This is the only thing holding me back from launching my site though :(

dman’s picture

You said you are using imagefield. If you are using imagefield, then you should be able to choose the imagecache preset used for display on the 'Display Fields" page. I can't imagine why that's not working for you.

Imagecache files will not be in the imagecache folder (if that's where you are looking) until after the derivative has been requested through the web interface at least once. this confuses people sometimes.

supernova00’s picture

FileSize
117.62 KB
114.83 KB

Nope, there aren't any fields for imagecache. I've attached two screenshots. In the existing fields, there is only a selection for my video upload so I didn't include a screenshot showing those.

dman’s picture

FileSize
77.54 KB

#7 Editing the fields display settings under your content type lets you choose the imagecache preset to display.

#9 you should be able to choose the imagecache preset used for display on the 'Display Fields" page.

supernova00’s picture

I do not have anything at all under "Display Fields" tab.

"There are no fields configured for this content type. You can add new fields on the Manage fields page."

panosp’s picture

I went through pretty much the same problems but it worked after all. This is what I did (I put this tutorial together pretty fast so drop a note if I need to clarify parts of it) http://koukounari.gr/watermark-images-in-drupal

@supernova00 in my example images are implemented as content type's fields.

fietserwin’s picture

Component: Text Actions Module » Code
Issue summary: View changes
Status: Active » Closed (won't fix)

D6 EOL. This module's D6 issues already haven't received any attention for over a year. Closing them all unconditionally now.