How to show FullSize image with watermark in PopUp window
|
c2h5oh
Joined: 2006-01-11
Posts: 11 |
Posted: Sun, 2006-02-12 09:35
|
|
Hi, I can't get FullSize image in a new PopUp window. This link gives me ORIGINAL photo (no watermark)
<a href="{g->url arg1="view=watermark.DownloadItem" arg2="itemId=`$theme.item.id`"}" target="_blank">
This link gives me photo that I want, but gives all design (template) as well.
<a href="{g->url arg1="imageViewsIndex=`$theme.sourceImageViewIndex`" arg2="itemId=`$theme.item.id`"}" target="_blank">
Is it possible to get FullSize image with watermark alone, without design? Thanks for any hint |
|
| Login or register to post comments |

Posts: 2226
what about <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}" target="_blank"> ?
Posts: 11
The same as watermark.DownloadItem, gives image without watermark
Posts: 2226
Are you applying watermarks to your fullsize image or just the resized?
Posts: 17
fullsize image only ... (the rest do I think of making by the built in genertor)
Posts: 2226
Can you give the url to your gallery?
Posts: 11
I'm Applying watermarks to Resizes and Full Size.
Here is sample: http://new.remistattoo.com/gallery/news/DublinInTheNightTime/CRW_5442.jpg.html
Posts: 2226
Getting Error Missing Object for that link now.
What version of G2 are you using? (FAQ: What information is required when I ask for help in the forums?)
Posts: 11
Must be photo was renamed...
Working sample link would be http://new.remistattoo.com/gallery/news/DublinInTheNightTime/Costum+haus.jpg.html
Version of Gallery is 2.0.2
Posts: 2226
Can you turn off the short url module please
Posts: 11
Done.
http://new.remistattoo.com/gallery/index.php?g2_view=core.ShowItem&g2_itemId=390
Posts: 2226
http://new.remistattoo.com/gallery202/main.php?g2_view=core.DownloadItem&g2_itemId=540 apears to have the watermark on it. as does core.WatermarkItem. Is it working now perhaps?
Posts: 11
Thank you ckdake for bringing me on a right track! All trick is that every resized image has different ID. Originaly I thought that there is only one ID and depending on ViewIndex it resizes to different sizes. Here is my final code:
<div class="{$class}"> {if count($theme.imageViews) > 2} {g->text text="Other sizes:<br />"} {section name=imageView loop=$theme.imageViews} {if ! $smarty.section.imageView.first and ! $smarty.section.imageView.last } <A href="javascript:void(0);" onclick="window.open('{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.imageViews[imageView].id`"}','viewWindow', '{g->text text="width=%d,height=%d" arg1=$theme.imageViews[imageView].width+20 arg2=$theme.imageViews[imageView].height+20}, resizable=yes,scrollbars=no' );"> {if empty($theme.imageViews[imageView].width)} {if isset($theme.imageViews[imageView].isSource)} {g->text text="Source"} {else} {g->text text="Unknown"} {/if} {else} {g->text text="%dx%d" arg1=$theme.imageViews[imageView].width arg2=$theme.imageViews[imageView].height} {/if} </a> {/if} {/section} {/if} </div>Thanks to Gallery2 Developers and all people who helped me to achieve this.