Page 1 of 1

CGExtensions watermark wrong position on mobile devices

Posted: Sun Mar 17, 2013 1:07 am
by tylei
On mobile devices(htc desire z, iphone 5) instead of putting watermark to Centerposition puts it to Middle right. Does it on all ~800x600 images but On 800x1426px or 500x281 puts OK. (look attached file please)

Happens on fancybox and lightbox.
CGExtensions 1.32.2
CGSmartImage 1.10.7
CMS Made Simpleā„¢ 1.11.4 "Fernandina"

Using example:

Code: Select all

 <a class="group" href="{CGSmartImage src=$image->file|escape:'url'|replace:'%2F':'/' quality=100 notag=1 noembed=1 filter_watermark=1}" title="{$image->titlename}" rel="gallery-{$galleryid}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a> 

Re: CGExtensions watermark wrong position on mobile devices

Posted: Sun Mar 17, 2013 10:20 am
by velden
Are you sure this behavior depends on used device?

I would expect it to put the watermark in the image server side (php), hence it would not make any difference which browser/device is used.

Re: CGExtensions watermark wrong position on mobile devices

Posted: Sun Mar 17, 2013 12:21 pm
by tylei
velden wrote:Are you sure this behavior depends on used device?

I would expect it to put the watermark in the image server side (php), hence it would not make any difference which browser/device is used.
I guess before it puts watermark it makes calculations based on screen, maybe it interprets numbers from mobile device different(wrong) way.

Re: CGExtensions watermark wrong position on mobile devices

Posted: Sun Mar 17, 2013 12:34 pm
by velden
Normally, server side scripts know nothing about the client display properties.

It does not matter, an image is an image, a watermark position is relative to the image.

The mobile device's task is to scale the image and the watermark is already in that image.

That said; I did not develop this module so I could be wrong. However, I think I'm right. There really is a difference between the possibilities of client side scripts and server side scripts.

Re: CGExtensions watermark wrong position on mobile devices

Posted: Mon Mar 18, 2013 10:54 pm
by paulbaker
@tylei can you post a URL for testing?

Re: CGExtensions watermark wrong position on mobile devices

Posted: Tue Mar 19, 2013 8:19 am
by cb2004
Menu item Extensions > Calguys Smart Image Toolkit. Go to the responsiveness tab. If you change 'Enable Responsive Images:' to No does that fix it?

Re: CGExtensions watermark wrong position on mobile devices

Posted: Fri May 24, 2013 3:56 pm
by GroeneKaktus
There is definately something with the responsive image setting, I experienced an issue with mobile devices, where my transparent .PNG images got really crackled when using CGsmartimage. When I turned off the responsive image setting, the images where smooth and nice again! :)