Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Always return a thumbnail of the requested size. #206

Merged
merged 8 commits into from
Aug 20, 2015

Conversation

erikjohnston
Copy link
Member

Before, we returned a thumbnail that was at least as big (if possible)
as the requested size. Now, if we don't have a thumbnail of the given
size we generate (and persist) one of that size.

Before, we returned a thumbnail that was at least as big (if possible)
as the requested size. Now, if we don't have a thumbnail of the given
size we generate (and persist) one of that size.
@erikjohnston
Copy link
Member Author

Actually, we should probably make this configurable.

@NegativeMjark
Copy link
Contributor

Could you de-duplicate the "thumbnail" function by passing the thumbnail path as an argument?

request, media_id, width, height, method, m_type
)
else:
yield self._respond_remote_thumbnail(
yield self._select_or_generate_remote_thumbnail(
request, server_name, media_id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably this will switch between _respond_remote_thumbnail and _select_or_generate_remote_thumbnail when the config option is added.

@erikjohnston erikjohnston force-pushed the erikj/generate_presice_thumbnails branch from 6bbe02f to 4590851 Compare July 23, 2015 14:59
@erikjohnston
Copy link
Member Author

LGTM

NegativeMjark added a commit that referenced this pull request Aug 20, 2015
…ails

Always return a thumbnail of the requested size.
@NegativeMjark NegativeMjark merged commit 22346a0 into develop Aug 20, 2015
@erikjohnston erikjohnston deleted the erikj/generate_presice_thumbnails branch September 10, 2015 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants