Skip to content

Allow uploading larger screenshots on devhub #5385

Closed
mozilla/addons-server
#8553

Description

@jvillalobos

Part of #5384.

The developer hub must allow image uploads of up to 1280x800, both in PNG and JPG format. I believe we already do post-upload processing to ensure the images have a reasonable file size, but if I'm wrong about it, we need to do something like that.

Activity

  1. jvillalobos commented on Mar 23, 2018

    @jvillalobos
    Author

    This maximum is the same that the Google Chrome Store sets, which makes it easier for developers to have the same/similar images for both listings.

  2. eviljeff commented on Mar 26, 2018

    @eviljeff
    Member

    I believe we do allow larger screenshots to be uploaded, but then downscale them. Is 1280x800 to be the new standard size, or are you asking for an additional size in addition to 700x525?

  3. jvillalobos commented on Mar 26, 2018

    @jvillalobos
    Author

    There are a few things at play:

    • What is accepted in the upload form. If we're already accepting 1280x800 or larger, then we're good on this point.
    • What dimensions of thumbnails are we generating from these uploads. The Chrome Web Store recommends 1280x800 or 640x400, so ideally we should aim for the same ratio to make developers' lives easier.
    • Which thumbnails we show on the front end. That's the frontend dependencies of Support bigger screenshot uploads #5384.
  4. self-assigned this
    on Jun 14, 2018
  5. eviljeff commented on Jun 14, 2018

    @eviljeff
    Member

    @jvillalobos can you clarify what thumbnail size we want? Currently we generate 200x150. You want to increase that to 640x400? (Is that not a little large for a thumbnail?)

  6. jvillalobos commented on Jun 14, 2018

    @jvillalobos
    Author

    1280x800 and 640x400 are the dimensions recommended to developers by the Chrome Store. I suggest we use the same aspect ratio for the thumbnails we generate, but not necessarily the same size. We could aim for something like 320x200, which is close to the current sizes.

  7. eviljeff commented on Jun 15, 2018

    @eviljeff
    Member

    From discussion:
    We're going to create a single max 1280x800 preview, and a 320x200 thumbnail.

    Frontend will initially consume this 1280x800 preview and display at full size (or whatever fits on screen) but will also look at using srcset to use other sizes - and addons-server will return other sizes when we know what we need.

  8. eviljeff commented on Jun 15, 2018

    @eviljeff
    Member

    Discussion with @willdurand ^ (need link to srcset issue)

  9. willdurand commented on Jun 15, 2018

    @willdurand
    Member

    and a 320x200 thumbnail.

    strict? or max size? 😋

  10. eviljeff commented on Jun 15, 2018

    @eviljeff
    Member

    and a 320x200 thumbnail.

    strict? or max size? 😋

    max 😆

  11. added this to the 2018.06.21 milestone on Jun 18, 2018
  12. AlexandraMoga commented on Jun 20, 2018

    @AlexandraMoga

    I've checked the devhub screenshot upload component on AMO stage by uploading several image types of various sizes
    I haven't noticed issues at upload and the previews are generated.

    I have found that the new thumbnail size is breaking the layout of add-on reviews page for which I filed #5673

    I'm going to mark the issue as verified fixed on AMO stage with FF60, WIn10x64

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

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions