Git Product home page Git Product logo

Comments (6)

akx avatar akx commented on August 10, 2024

What input file formats do we accept? Or, say, anything that ImageMagick could handle?

from respa.

juyrjola avatar juyrjola commented on August 10, 2024

Basically just the ones that Pillow handles. Photos should be JPEG, ground plans and maps should be PNG, but I'm not sure if it makes sense to enforce that.

from respa.

akx avatar akx commented on August 10, 2024

Okiedoke. Should we store the original file too, though, for possible later (re)conversion?

I assume the use case here is that the images the API outputs are "web usable"?

from respa.

juyrjola avatar juyrjola commented on August 10, 2024

You can get the original image with the default image URL (such as here: http://api.hel.fi/respa/v1/resource/aurhijh62voa/).

You can request smaller images by appending ?dim=x to the image URL.

from respa.

akx avatar akx commented on August 10, 2024

The issue description seems to imply that images should be converted to JPEG/PNG upon ingestion/upload though (meaning that the original data uploaded would be lost)?

Or did I misunderstand things there?

from respa.

juyrjola avatar juyrjola commented on August 10, 2024

Right. If the original image is not JPEG nor PNG, it should be converted. If it already is in either supported format, nothing should be done.

The cropping field contains user-specified information on how to crop the image into a square shape for thumbnails, but we're still undecided if we should support other aspect ratios than 1:1.

from respa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.