Giter VIP home page Giter VIP logo

Comments (4)

domax avatar domax commented on June 22, 2024
  1. Your HTML <img> element contains width attribute that is set to "100", so that browser tries to render it with this width, ignoring height attribute. Informing the Browser — the actual purpose of width attribute, and see also The Proper Use of height. If you want to render your image neglecting its recommended dimensions (img's width and height attributes), you should use CSS width and height properties.
  2. As far I can get from your screenshot, top row of your photo grid are panoramas - such a photos have very long width and short height. At the left side of screenshot you have a balloon where you can see an original (natural) dimensions of your panorama thumbnail: 150 x 28 pixels.

I cannot see any issues depending on this plugin.

from cordova-plugin-photos.

domax avatar domax commented on June 22, 2024

Just in case: thumbnail() function does not make any padding/color-filling in thumbnails - it just resizes an original image to desired dimension you specify in options. Aspect ratio is preserved. To compute a thumbnail size, it uses the following algorithm:

cf = dimension / max(image.width, image.height)
thumbnail.width = image.width * cf
thumbnail.height = image.height * cf

from cordova-plugin-photos.

kartagis avatar kartagis commented on June 22, 2024

from cordova-plugin-photos.

domax avatar domax commented on June 22, 2024

Exactly

from cordova-plugin-photos.

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.