[CDS API] Change image resolution for Low/Medium qualities via profile

Issue #640 resolved
Will Lunniss created an issue

No description provided.

Comments (8)

  1. Petr Nejedly repo owner

    Can you provide some description, please? Just your required resolution limits will do.

  2. Will Lunniss reporter

    I would probably like something like 1280x1280 max for Low, and 1920x1920 max for Medium. I think they are something like 800x800 and 1024x1024 at the moment?

    Basically want to avoid downloading and loading into memory a 4000+ resolution image

  3. Petr Nejedly repo owner

    These are the current ones

        public static final int JPEG_SM_MAX_WIDTH = 640;
        public static final int JPEG_SM_MAX_HEIGHT = 480;
    
        public static final int JPEG_MED_MAX_WIDTH = 1024;
        public static final int JPEG_MED_MAX_HEIGHT = 768;
    
  4. Will Lunniss reporter

    OK, yes I'm currently using MED, if that could be increased by the profile that would be great. How does the different height/width values work for portrait photos? Does it take that into account or does it make then 320x480 for example in the case of the current low?

  5. Petr Nejedly repo owner

    Added a new profile tag

    <AllowedImageResolutions large="4096x4096" medium="1024x768" small="640x480" />
    
  6. Log in to comment