Comments (4)
- Your HTML
<img>
element containswidth
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 ofwidth
attribute, and see also The Proper Use of height. If you want to render your image neglecting its recommended dimensions (img
'swidth
andheight
attributes), you should use CSSwidth
andheight
properties. - 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.
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.
from cordova-plugin-photos.
Exactly
from cordova-plugin-photos.
Related Issues (20)
- App is crashed on photos() call that returns huge amount of records
- Limit on Get photo assets HOT 13
- image() return base64 or dataURI HOT 4
- Phonegap Build error with Android HOT 1
- Wrong orientation in Android HOT 2
- Get access to URI ? HOT 2
- Get native paths of my images HOT 1
- Ask for contributing HOT 3
- collections() return Error: Invalid column DISTINCT bucket_id only on Android 10 HOT 4
- Compilation error on Android HOT 7
- Impossible to get the image HOT 2
- Does not work with API 29
- Add getting image as file URL HOT 3
- Some assets don't return thumbnails on iOS
- Real size of thumbnails is lesser than requested on iOS
- Display ArrayBuffer in canvas looks scrambled HOT 3
- Some images are fetched in wrong orientation HOT 10
- Add timestamp in millis into Photos.photos() output
- Add optioning of fetching delay between photos() bundles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-photos.