Joar Wandborg
851c51a354
Feature 477 - Support Cloud Files public storage
...
* 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`
2011-08-04 01:32:34 +02:00
Christopher Allan Webber
5f72a4c331
Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'
...
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/process_media/__init__.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/util.py
2011-07-16 16:28:12 -05:00
Christopher Allan Webber
899d891692
Set the jpeg quality at 90 for now...
2011-07-04 15:40:05 -05:00
Christopher Allan Webber
24eaf0fd6b
Not happy with 180x135, switching back to 180x180
2011-07-04 09:41:57 -05:00
Christopher Allan Webber
18ec9ff324
New thumbnail size is apparently 180x135.
...
We don't know if that's permanent but if it isn't it seems "Mostly Harmless"
2011-07-03 17:37:41 -05:00
Joar Wandborg
2c9e635ae2
Feature #400 - Resize images to fit on page - Additions
...
* `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()`
2011-07-03 05:46:00 +02:00
Joar Wandborg
93214d8e02
Feature #400 - Resize images to fit on page
...
* `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.
2011-07-03 01:30:07 +02:00
Christopher Allan Webber
0e9dd2a286
Merge remote branch 'remotes/elrond/dev/workbench_class'
2011-06-14 17:17:03 -05:00
Elrond
b67a983a02
Move destroy_workbench to Workbench class
...
And add a lot of warnings, as the checks for "being part of
the main Manager" are all gone.
2011-06-14 20:39:14 +02:00
Christopher Allan Webber
48a7ba1e1c
Merge remote branch 'remotes/elrond/idea/simple_proc_media_clean'
...
Conflicts:
mediagoblin/process_media/__init__.py
2011-06-12 17:42:26 -05:00
Elrond
52426ae01f
Create a Workbench class and use it everywhere.
...
Some references to Workbench.dir look ugly, I'm happy to
hear suggestions there.
2011-06-13 00:39:41 +02:00
cfdv
34d35a2393
ensure color mode compatibility when making image thumbnails
2011-06-12 17:35:07 -05:00
Christopher Allan Webber
300c34e8ce
First import of mg_globals as mgg, partly because I just wanted it to
...
be clear that it's okay to do by doing it *somewhere* :)
2011-06-12 17:28:54 -05:00
Christopher Allan Webber
6e7ce8d1af
mediagoblin.globals->mediagoblin.mg_globals
2011-06-12 17:27:37 -05:00
Christopher Allan Webber
68ffb13690
possibly_localize_file->localized_file... a bit less terribly long.
2011-06-11 21:23:32 -05:00
Christopher Allan Webber
ca030ab6cd
Switch process_media over to using the workbench.
2011-06-11 21:20:39 -05:00
Christopher Allan Webber
894facc68d
Import mediagoblin.globals as mg_globals so we can be sure things are
...
set up in the right order.
2011-06-11 19:48:49 -05:00
Elrond
180bdbde93
Refactor filename generation in the public store
...
Just a small refactoring of the filename setup in the
public store. Very simple.
2011-06-08 23:22:11 +02:00
Elrond
254bc43174
Move ObjectId, DESCENDING to db.util
...
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.
2011-05-18 11:32:29 +02:00
Christopher Allan Webber
12b6ecac0f
Erk, we didn't save the state right before
2011-05-06 10:01:11 -05:00
Christopher Allan Webber
fa7f9c6184
Process media! Successfully!
2011-05-06 09:37:24 -05:00
Christopher Allan Webber
41f446f4f2
Add a rudimentary media processing function.
...
Haven't completely checked it for workingness, and not the final form
this will take :)
2011-05-03 21:45:13 -05:00