djangosnippets.org: Latest snippets posted by monikkinomhttps://djangosnippets.org/users/monikkinom/2015-01-26T09:57:55.487301-06:00monikkinomImage compression and conversion to JPG format before uploading the file
2015-01-26T09:57:55.487301-06:00monikkinomhttps://djangosnippets.org/snippets/10460/<p>I've reimplemented the code I found somewhere on the web within my models file. The earlier version was incapable of converting all formats to JPG while this code converts all formats and compresses all of them successfully. </p>
<p>You need to have PILLOW installed for this to work.</p>
Freely redistributableImage compression and conversion to JPG format before uploading the file
2015-01-26T09:46:48.316864-06:00monikkinomhttps://djangosnippets.org/snippets/10459/<p>I've reimplemented the code I found somewhere on the web within my models file. The earlier version was incapable of converting all formats to JPG while this code converts all formats and compresses all of them successfully. </p>
Freely redistributable