://github.com/cccaballero/web2py-thumbnails
In the next updates I will work to use the plugin manager.
Cheers.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que
.. yes two years later as making thumbnails still useful!!
Thanks Niphlod, I'll do it with path.join call. Anyway the error was in the
path, static/uploads instead of uploads.
Il giorno martedì 14 aprile 2015 16:56:00 UTC+2, Niphlod ha scritto:
>
> 2 years later ?!
>
> for starters, PLEASE don't
Hi.
If I click on the file link I obtain:
https://my_domain.com/my_app/appadmin/download/db/%5BErrno%202%5D%20No%20such%20file%20or%20directory:%20%27/home/my_folder/webapps/w2p_2_9_12_dev/web2py/applications/my_app/static/uploads/my_table.my_image.844c80079e794fbd.62726f777361626c655f636174616c6f
2 years later ?!
for starters, PLEASE don't concatenate paths as strings and use a proper
os.path.join call
On Tuesday, April 14, 2015 at 4:53:14 PM UTC+2, Gael Princivalle wrote:
>
> Hi.
>
> If I click on the file link I obtain:
>
> https://my_domain.com/my_app/appadmin/download/db/%5BErrn
Hi, I uploaded it to github
(https://github.com/cccaballero/web2py-thumbnails), there are sources
and some instructions.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud
I'll try it, it was ir looking For.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Gro
Hi, this is a first aproach of a thumbnails plugin, needs PIL to work.
Any recomendations will be apreciated (I don't like so much what I am
doing with the database)
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de
Oops, make sure to import PIL:
from PIL import Image
I like the module approach. I just put the function in my model file like
this:
db.item.image_thumb.compute = lambda r: resize_image(r['image'], (150,130),
'thumb')
db.item.image_display.compute = lambda r: resize_image(r['image'],
(320,320), 'display')
def resize_image(image, size, path, rota
I do it using the compute attribute, take a look:
http://movu.ca/demo/article/show/36/creating-thumbnails-with-web2py
On Tue, Feb 28, 2012 at 3:32 PM, Ivan Vilches Basaul <
ivan_vilc...@hotmail.com> wrote:
> Any way for automatic thumbnails creation?
> Thanks
>
> Ivan Vilches Basaul
>
>
--
Br
Any way for automatic thumbnails creation?
Thanks
Ivan Vilches Basaul
11 matches
Mail list logo