Skip to content

Cover displays with incorrect aspect ratio after upload #10883

Open
@seabelis

Description

@seabelis

Problem

After uploading a cover image from an IA item, the aspect ration is our of proportion. Refreshing the page corrects the display. I have also tried the copy/paste method from a non linked item and the same issue did not occur.

Image

Reproducing the bug

  1. Go to ...an edit page for a book with an ocaid.
  2. Do ...upload cover from the Internet Archive item.
  • Expected behavior: Cover should be same dimensions as the cover and not distorted.
  • Actual behavior: Cover display is distorted.

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N):
  • Environment (prod, dev, local): prod

Breakdown

Requirements Checklist

  • [ ]

Related files

Stakeholders


Instructions for Contributors

  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

Metadata

Metadata

Assignees

Labels

Affects: UIIssues with the web site's user interface. [managed]Good First IssueEasy issue. Good for newcomers. [managed]Lead: @cdriniIssues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]Needs: HelpIssues, typically substantial ones, that need a dedicated developer to take them on. [managed]Needs: Submitter InputWaiting on input from the creator of the issue/pr [managed]Priority: 3Issues that we can consider at our leisure. [managed]Theme: EditingIssues related to the user editing/wiki editing experience. [managed]Type: BugSomething isn't working. [managed]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions