{"id":13411569,"url":"https://github.com/daxslab/web2py-thumbnails","last_synced_at":"2025-03-26T17:29:33.511Z","repository":{"id":17015443,"uuid":"19779371","full_name":"daxslab/web2py-thumbnails","owner":"daxslab","description":"thumbnails plugin for the web2py framework","archived":false,"fork":false,"pushed_at":"2015-06-26T12:58:02.000Z","size":176,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-31T20:48:01.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daxslab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-14T12:55:35.000Z","updated_at":"2020-01-09T07:36:22.000Z","dependencies_parsed_at":"2022-09-24T12:12:01.720Z","dependency_job_id":null,"html_url":"https://github.com/daxslab/web2py-thumbnails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daxslab%2Fweb2py-thumbnails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daxslab%2Fweb2py-thumbnails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daxslab%2Fweb2py-thumbnails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daxslab%2Fweb2py-thumbnails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daxslab","download_url":"https://codeload.github.com/daxslab/web2py-thumbnails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245701892,"owners_count":20658506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:14.608Z","updated_at":"2025-03-26T17:29:33.488Z","avatar_url":"https://github.com/daxslab.png","language":"Python","funding_links":[],"categories":["Web Development"],"sub_categories":["Python"],"readme":"web2py-thumbnails\n=================\n\nThumbnails plugin for the web2py framework.\n\nThis plugin allows automatic creation of thumbnails from image upload fields. It creates a virtual field and not modify original tables.\n\n\nInstallation\n============\n\n- Install or include Python Imaging Library (PIL)\n- Download The plugin installer (.w2p file) and install it via the web2py interface.\n\nUsage\n=====\n\n```python\n# coding: utf8\n\ndb = DAL()\ndb.define_table('mytable',Field('myfield','string'),\n                          Field('img','upload'))\n\nfrom plugin_thumbnails.thumbnails import thumbnails          # imports thumbnails plugin\nthumb = thumbnails(db, autodelete=True)                      # instantiate plugin and crete thumbnails table\nthumb.create(db.mytable.img, (150, 150), use_imageops=True)  # create thumbnails for mytable img field\n\ndb.mytable.insert(myfield='Char',img=image)                  # automatically create thumbnail for img field\ndb(db.mytable.id==1).update(img=new_image)                   # automatically update thumbnail\nthumbnail = db(db.mytable).select().first().img_thumbnail    # select thumbnail\ndb(db.mytable.id==1).delete()                                # automatically delete thumbnail\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaxslab%2Fweb2py-thumbnails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaxslab%2Fweb2py-thumbnails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaxslab%2Fweb2py-thumbnails/lists"}