aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/process_media/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes after merging video branch into masterJoar Wandborg2011-11-211-195/+0
| | | | | | | | | | | | | - Removed debug output from init/celery - Moved process_media/__init__ to processing.py - Centralized the processing.ProcessMedia task class - Updated media managers to reference the processing function instead of the ProcessMedia instance - Updated new-style image processing to previous, newer old-style image processing - Updated video transcoding - Changed method in progress output, sometimes message.structure['percent'] raises KeyError
* Merge branch 'video_gstreamer-only'Joar Wandborg2011-11-211-0/+3
|\ | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/submit/views.py
| * Stashing changesJoar Wandborg2011-11-211-0/+3
| |
* | Made the image processing use intermediary conversion file.Christopher Allan Webber2011-11-201-8/+22
| | | | | | | | | | This should fix the problem with PIL and the cloudfiles storage system fighting.
* | Dot-Notation for "_id"Elrond2011-11-151-2/+2
| | | | | | | | | | | | | | | | | | Note: Migrations can't use "Dot Notation"! Migrations run on pymongo, not mongokit. So they can't use the "Dot Notation". This isn't really a big issue, as migrations are anyway quite mongo specific.
* | Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-131-8/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * | Whitespace and formatting cleanup.Nathan Yergler2011-10-011-8/+10
| |/ | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Final step for non-force-conversion to jpegChristopher Allan Webber2011-11-121-9/+6
| |
* | Don't force-convert resized images to JPEG.Christopher Allan Webber2011-11-121-2/+2
|/ | | | That's just not nice for those of us who like transparency!
* Feature #571 - Closing storage objects - Removed closing(), renamedJoar Wandborg2011-09-051-14/+5
| | | | | | | | | | | | | | StorageObjectWrapper, added with-support to CloudFilesStorageWrapper * Removed custom `closing()` method * Removed usage of `closing()` in process_media/__init__.py * Renamed StorageObjectWrapper -> CloudFilesStorageObject wrapper In my first version of the StorageOjbectWrapper it was located inside the CloudFilesStorage object, things have changed since then but there has been no renaming, thank you Elrond for the good point. * CloudFilesStorageObjectWrapper now supports context manager methods such as `__enter__()` and `__exit__()` (and `close()`)
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Made a wrapper for cloudfiles.storage_object.ObjectJoar Wandborg2011-09-011-2/+2
| | | | - `medium.jpg` issue should no longer exist.
* Converting multi-line-string-comment to a real comment.Christopher Allan Webber2011-08-131-5/+3
|
* @task decorator no longer used! Removing that import.Christopher Allan Webber2011-08-131-1/+13
|
* Capture and properly handle errors.Christopher Allan Webber2011-08-131-22/+32
| | | | | | | | | | | | | | Handled in several places: - In the run() of the ProcessMedia itself for handled (BaseProcessingFail derived) errors (best to do these not in on_failure because the errors are highlighted in celeryd in a way that looks inappropriate for when the errors are well handled) - In ProcessMedia.on_failure() for all other errors - In the submit view where all exceptions are caught, media is marked at having failed, then the error is re-raised. (The reason for this is that users running in "lazy" mode will get errors propagated by celery and so on_failure won't run for them.)
* Proper handling of processor failures, working as hoped!Christopher Allan Webber2011-08-131-11/+65
| | | | | | BaseProcessingFail based exceptions recorded and marked appropriately in the database. Other exceptions also caught and marked (or rather not marked) appropriately in the database as well.
* Create processing errors and raise BadMediaFail on failure to load the imageChristopher Allan Webber2011-08-121-1/+7
|
* Feature 477 - Support Cloud Files public storageJoar Wandborg2011-08-041-3/+10
| | | | | | | | | * Added configuration options to mediagoblin.ini * process_media supports the python-cloudfiles almost-file-like objects by wrapping them in a contextlib.contextmanager-decorated func. * storage now has the CloudFilesStorage * New dependency added to setup.py; `python-cloudfiles`
* Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'Christopher Allan Webber2011-07-161-13/+20
|\ | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/process_media/__init__.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/util.py
| * Feature #400 - Resize images to fit on page - AdditionsJoar Wandborg2011-07-031-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `migrations.py` * Removed empty line * Added empty line * `models.py` * Added `MediaEntry.get_display_media()` helper function * `process_media.__init__.py` * Updated `process_media_initial()` * Renamed `main` => `original`. * Added condition to `medium`, it's only created if the original dimensions exceed the MEDIUM_SIZE dimensions. * `media.html` * The image tag is now populated by `MediaEntry.get_display_media()` * `util.py` * Added `DISPLAY_IMAGE_FETCHING_ORDER`, used by `MediaEntry.get_display_media()`
* | Set the jpeg quality at 90 for now...Christopher Allan Webber2011-07-041-2/+2
| |
* | Not happy with 180x135, switching back to 180x180Christopher Allan Webber2011-07-041-1/+1
| |
* | New thumbnail size is apparently 180x135.Christopher Allan Webber2011-07-031-1/+1
|/ | | | We don't know if that's permanent but if it isn't it seems "Mostly Harmless"
* Feature #400 - Resize images to fit on pageJoar Wandborg2011-07-031-11/+25
| | | | | | | | | | * `mediagoblin.process_media.__init__` * Added `medium` size image conversion * Updated `thumbnail` conversion to use `queued_filename` instead of `queued_file` * `media.html` * If there exists a `medium` size for the `MediaEntry`, it will display instead of the original `main` image.
* Merge remote branch 'remotes/elrond/dev/workbench_class'Christopher Allan Webber2011-06-141-3/+3
|\
| * Move destroy_workbench to Workbench classElrond2011-06-141-1/+1
| | | | | | | | | | And add a lot of warnings, as the checks for "being part of the main Manager" are all gone.
| * Create a Workbench class and use it everywhere.Elrond2011-06-131-2/+2
| | | | | | | | | | Some references to Workbench.dir look ugly, I'm happy to hear suggestions there.
* | Merge remote branch 'remotes/elrond/idea/simple_proc_media_clean'Christopher Allan Webber2011-06-121-8/+10
|\ \ | |/ |/| | | | | Conflicts: mediagoblin/process_media/__init__.py
| * Refactor filename generation in the public storeElrond2011-06-081-8/+10
| | | | | | | | | | Just a small refactoring of the filename setup in the public store. Very simple.
* | ensure color mode compatibility when making image thumbnailscfdv2011-06-121-0/+3
| |
* | First import of mg_globals as mgg, partly because I just wanted it toChristopher Allan Webber2011-06-121-11/+11
| | | | | | | | be clear that it's okay to do by doing it *somewhere* :)
* | mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-1/+1
| |
* | possibly_localize_file->localized_file... a bit less terribly long.Christopher Allan Webber2011-06-111-1/+1
| |
* | Switch process_media over to using the workbench.Christopher Allan Webber2011-06-111-2/+11
| |
* | Import mediagoblin.globals as mg_globals so we can be sure things areChristopher Allan Webber2011-06-111-9/+10
|/ | | | set up in the right order.
* Move ObjectId, DESCENDING to db.utilElrond2011-05-181-2/+2
| | | | | | We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this.
* Erk, we didn't save the state right beforeChristopher Allan Webber2011-05-061-2/+2
|
* Process media! Successfully!Christopher Allan Webber2011-05-061-5/+20
|
* Add a rudimentary media processing function.Christopher Allan Webber2011-05-031-0/+50
Haven't completely checked it for workingness, and not the final form this will take :)