Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-crop images as squares for smaller thumbnails #243

Open
wants to merge 2 commits into
base: preview
Choose a base branch
from

Conversation

towerofnix
Copy link
Member

@towerofnix towerofnix commented Aug 13, 2023

Development:

In effect, this PR crops images to square dimensions for smaller thumbnails so that they are already the correct resolution to fill a square presentation on the website. This affects the medium and small thumbs only, which are used for cover artworks and grid cells respectively — both square containers. This doesn't affect the larger thumbnails, which are used for commentary (or are supposed to) and the large image preview — both intended to display images at their original aspect ratio.

Caveat: Because medium now crops to square, it's never appropriate for display in content. The homepage news box has been adjusted accordingly, although it's only ever displayed one image and that news entry will be pushed out of the latest news by the time this PR lands.

That's a blocker because we now might display medium thumbs even if we asked for large! Specifically, for images which never got a large thumb generated to begin with — that's all images under 800x800, currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smaller thumbnail sizes should automatically pre-crop to square dimensions
1 participant