This page is for imaging tips and tricks
From http://groups.google.com/group/web2py/browse_thread/thread/dfa81ac52a0b7ad1#
Pynthon
Aug 4, 6:39 am
Hello
Is it also possible to add watermarks on images with web2py?
Thanks
mdipierro
Aug 4, 8:44 am
I guess you can using the Python Imagel Library (PIL).
You may create an validator that watermarks on unpload.
If you find out how to do it using PIL I can help with the validator.
Massimo
Pynthon
Aug 4, 8:52 am
Thanks, I will give PIL a look!
Thank you very much!
=========================================================================
From http://groups.google.com/group/web2py/browse_thread/thread/d2f7764695f2c9bc Hi All, I have some images in some css: background: url(images/myimage.jpg) the css is in : init/static and the images is in : init/static/images the image URL is translated to Is it working as expected ? Thanks Sebastian E. Ovide mdipierro Thanks for letting us know. <img src="images/pic_1.jpg" But you can do <img src="/init/static/images/pic_1.jpg"
no-repeat;
http://127.0.0.1:8000/images/myimage.jpginstead of being relative to
where the css file is located (the resulting
URL should be http://127.0.0.1:8000/init/static/images/myimage.jpg). That
means that all the templates made by the UI designer must be changed by hand
adding the full URL.
--
This is working as expected.
The way this handled cannot be changed because it is determined by the
browser.
==========================================================================