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.
I was trying these kinds of url's:

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
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Sun, 2006-02-12 23:47

what about <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}" target="_blank"> ?

Login or register to post comments
c2h5oh

Joined: 2006-01-11
Posts: 11
Posted: Mon, 2006-02-13 09:36

The same as watermark.DownloadItem, gives image without watermark

Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Wed, 2006-02-15 23:15

Are you applying watermarks to your fullsize image or just the resized?

Login or register to post comments
Oldhoj

Joined: 2006-02-12
Posts: 17
Posted: Wed, 2006-02-15 23:22

fullsize image only ... (the rest do I think of making by the built in genertor)

Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Fri, 2006-02-17 00:19

Can you give the url to your gallery?

Login or register to post comments
c2h5oh

Joined: 2006-01-11
Posts: 11
Posted: Fri, 2006-02-17 09:26

I'm Applying watermarks to Resizes and Full Size.

Here is sample: http://new.remistattoo.com/gallery/news/DublinInTheNightTime/CRW_5442.jpg.html

Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Wed, 2006-02-22 01:04

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?)

Login or register to post comments
c2h5oh

Joined: 2006-01-11
Posts: 11
Posted: Wed, 2006-02-22 09:17

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

Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Wed, 2006-02-22 16:28

Can you turn off the short url module please

Login or register to post comments
c2h5oh

Joined: 2006-01-11
Posts: 11
Posted: Wed, 2006-02-22 16:56
Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Wed, 2006-02-22 17:19

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?

Login or register to post comments
c2h5oh

Joined: 2006-01-11
Posts: 11
Posted: Thu, 2006-02-23 21:56

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>&nbsp;
			{/if}
		{/section}
   {/if}
</div>

Thanks to Gallery2 Developers and all people who helped me to achieve this.

Login or register to post comments