oseawey / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

New Feature: Borders #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Great little tool! I'm using it to display thumbnails of photos on a google 
map. Therefore I needed the ability to add borders to the picture. With this 
little modification you may use the parameter b with the following values:
&b=border_size_in_px,border_color_red,border_color_green,border_color_blue

Original issue reported on code.google.com by boris.pu...@googlemail.com on 14 Mar 2011 at 8:20

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Boris - thanks for the patch. I want to keep the script focused on things 
that can't be done otherwise, and so will pass on adding it to the core. It 
would be much better to use css styles to add borders to images than to add 
them to the script itself. This can also be done using the google maps api.

Original comment by BinaryMoon on 4 Apr 2011 at 3:26

GoogleCodeExporter commented 9 years ago
Fair enough not putting this into core, but just wanted to mention that I found 
this useful -- I am using a javascript pan & zoom plugin, which works based on 
the image dimensions. I couldn't use CSS to add padding to the image, because 
the javascript ignored it, and so it was very difficult to pan to the edge of 
the image. This way I can easily put an extra 20px on each edge of the image. 
so, thanks Boris! :)

Original comment by jer...@jkw.co.nz on 13 Aug 2014 at 6:40