SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Protecting images in a responsive design

    Hi Guys,
    I am currently working on my first 'responsive' website, and the client doesn't want the images on his website to be available for people to steal/download.

    I am aware that there is no fool-proof way of doing this and came across this article (http://skinnyartist.com/how-to-shrink-wrap-your-images) that covers a shrink wrapping method. The example used in this solution is with tables, however I am not using tables. So what I am wondering is is there a way of 'shrink wrapping' an image in a responsive design? Or am I best to use background images inside a div? I know this is not ideal - but thought I would throw it out there to see what other peoples thoughts/opinions might be.

    Thanks!

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,175
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Of course, the only way to protect images is not to put them online in the first place. But if you are going to serve them up as background images, then I don't see the point of placing a transparent image over the top of them (unless it's to fool people into think they are downloading what they want ... but unless they are tech savvy, most people will give up after failing to download the bg image).

    The problem with bg images is that they normally don't scale ... unless you use the new CSS3 background properties, though they don't work in all browsers yet.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,810
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You could put the image inside a div that is position:relative and then have a second div that is position:absolute positioned directly over the relative one containing the transparent image.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your replies Ralph.m & Felgall. I've ended up taking Felgall's advice which works a treat.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •