CGExtensions watermark wrong position on mobile devices

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
tylei
New Member
New Member
Posts: 8
Joined: Sun Jun 17, 2012 12:44 pm

CGExtensions watermark wrong position on mobile devices

Post 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> 
Attachments
Wrong watermark position on Iphone
Wrong watermark position on Iphone
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: CGExtensions watermark wrong position on mobile devices

Post 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.
tylei
New Member
New Member
Posts: 8
Joined: Sun Jun 17, 2012 12:44 pm

Re: CGExtensions watermark wrong position on mobile devices

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: CGExtensions watermark wrong position on mobile devices

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: CGExtensions watermark wrong position on mobile devices

Post by paulbaker »

@tylei can you post a URL for testing?
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: CGExtensions watermark wrong position on mobile devices

Post 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?
GroeneKaktus
Forum Members
Forum Members
Posts: 46
Joined: Sat Mar 06, 2010 10:38 am

Re: CGExtensions watermark wrong position on mobile devices

Post 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! :)
Post Reply

Return to “Modules/Add-Ons”