{"id":17345068,"url":"https://github.com/sveetch/django-smart-media","last_synced_at":"2026-01-22T05:04:25.710Z","repository":{"id":65206066,"uuid":"583163246","full_name":"sveetch/django-smart-media","owner":"sveetch","description":"A suit of tools to use a FileField to upload image with light SVG support","archived":false,"fork":false,"pushed_at":"2025-05-17T01:26:00.000Z","size":181,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T05:43:55.639Z","etag":null,"topics":["django","filefield","python","sorl-thumbnail"],"latest_commit_sha":null,"homepage":"https://django-smart-media.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sveetch.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-29T00:36:28.000Z","updated_at":"2025-05-17T01:25:52.000Z","dependencies_parsed_at":"2025-04-14T20:44:10.956Z","dependency_job_id":null,"html_url":"https://github.com/sveetch/django-smart-media","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/sveetch/django-smart-media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveetch%2Fdjango-smart-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveetch%2Fdjango-smart-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveetch%2Fdjango-smart-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveetch%2Fdjango-smart-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sveetch","download_url":"https://codeload.github.com/sveetch/django-smart-media/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sveetch%2Fdjango-smart-media/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28655062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["django","filefield","python","sorl-thumbnail"],"created_at":"2024-10-15T16:29:13.504Z","updated_at":"2026-01-22T05:04:25.704Z","avatar_url":"https://github.com/sveetch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. _Python: https://www.python.org/\n.. _Django: https://www.djangoproject.com/\n.. _sorl-thumbnail: https://github.com/jazzband/sorl-thumbnail\n\n==================\nDjango smart media\n==================\n\nA suit of tools to use a FileField to upload image with light SVG support, include\nthumbnail preview in field and a template tag around `sorl-thumbnail`_ library.\n\n\nDependencies\n************\n\n* `Python`_\u003e=3.10;\n* `Django`_\u003e=4.2;\n* `sorl-thumbnail`_\u003e=12.9.0;\n\n\nOverview\n********\n\nConcretely this contains:\n\n* Form widgets to build HTML for a ``FileField`` either with or without clearable\n  mode. Both mode have a version to include needed layout assets (CSS and Javascript)\n  and another one without assets;\n* Form fields which already set a \"smart\" widget;\n* Templates to build the widgets HTML;\n* CSS and Javascript for the widget layout;\n* Field validator;\n* Model signals to purge stale files;\n* Model field with all \"smart\" features;\n* A template tag to make thumbnail safely with SVG image (original SVG is just used\n  without Sorl raising issue for a non bitmap image);\n* Some helpers to ease some specific implementations;\n\nAlthough this can work with ``ImageField``, SVG support will only work with\n``FileField`` since ``ImageField`` rely on PIL that does not support SVG format.\n\n\nLinks\n*****\n\n* Read the documentation on `Read the docs \u003chttps://django-smart-media.readthedocs.io/\u003e`_;\n* Download its `PyPi package \u003chttps://pypi.python.org/pypi/django-smart-media\u003e`_;\n* Clone it on its `Github repository \u003chttps://github.com/sveetch/django-smart-media\u003e`_;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveetch%2Fdjango-smart-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsveetch%2Fdjango-smart-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsveetch%2Fdjango-smart-media/lists"}