Questions tagged [resolution]

Questions about image resolution.

Image resolution is an umbrella term that describes the detail an image holds. Higher resolution means more image detail.

Reference

Wikipedia

2378 questions
15
votes
4 answers

How can I get the screen resolution in R

How can I get screen resolution (height, width) in pixels?
gd047
  • 29,749
  • 18
  • 107
  • 146
15
votes
2 answers

knitr/rmarkdown - reducing html file size

I want to produce an html document using knitr/rmarkdown. Currently, the file is over 20MB and I'm trying to find a way to reduce it. The large file size is probably due to my plots which have a lot of points in them. If I change my output type to…
Maria Reyes
  • 369
  • 3
  • 18
15
votes
1 answer

Android MediaCodec: Reduce mp4 video size

I am looking for a way to "compress" an mp4 video. To achieve this, I want to reduce the resolution of the video and / or reduce FPS. After long research, I think the way to do it is to use MediaCodec and related APIs as follows : -> MediaExtractor…
Ricardo Cion
  • 151
  • 1
  • 1
  • 4
14
votes
1 answer

Access denied finding property "ro.vendor.pref_scale_resolution"

Randomly, my app crashs with an error: Access denied finding property "ro.vendor.pref_scale_resolution" I can't find documentation about this error. This error appears only on Android 11 on Nokia 2.4 Do you have ideas how I can resolve this ? or…
odgatelmand
  • 393
  • 1
  • 5
  • 16
14
votes
1 answer

How to integrate @2x @3x images to React Native Project (Both Android & IOS)?

I had added the same image's versions (@2x @3x)into src>asssets to work our platform in all devices. Here is the problem, VSCode only recognizes i.e path.png (it doesnt recognize @2x and @3x). How can we deal with this problem?
chc
  • 199
  • 1
  • 3
  • 11
14
votes
4 answers

Android: Why create specific images for ldpi, mdpi and hdpi?

I'm currently trying to support a larger range of devices with my Android app. However, even after reading through what the Android Dev Guide has to say on the issue, I'm unsure as to why I should provide different graphics for ldpi, mdpi and…
forneo
  • 715
  • 2
  • 8
  • 13
14
votes
5 answers

Get video resolution in nodejs

I have been trying to get an answer to this without really finding any. Excuse me if this sounds stupid or obvious. I have a nodejs application and basically I would like to simply get the resolution of a video. Imagine I have film stored on disk…
Thomas Gak-Deluen
  • 2,759
  • 2
  • 28
  • 38
14
votes
5 answers

get device PPI in javascript

How to get real PPI (pixels per inch) device resolution with javascript? some examples of device and value expected: iMac 27-inch: 109ppi iPad: 132ppi 19inch 1440x900 screen: 89ppi ...
Yukulélé
  • 15,644
  • 10
  • 70
  • 94
14
votes
3 answers

Media query about screen size instead of resolution

Is there a workaround to use physical screen width in CSS media queries? Today, there are phones which exceed the resolution of desktop monitors. However, phones should still display the mobile layout and desktops the standard layout. So I can't…
danijar
  • 32,406
  • 45
  • 166
  • 297
13
votes
5 answers

Javascript to detect mobile browser screen width?

i used screen.width to get the width of the browser. it worked fine with iphone safari but didn't work in android phone(it showed 800 width for android browser). Is there any compatible way to get the screen width. I dont want to use UserAgent to…
user378132
  • 311
  • 1
  • 4
  • 11
13
votes
13 answers

What's the standard "minimum" resolution I should support with a website?

Duplicate: Recommended website resolution (width and height)? I tend to think of 1024x768 as the minimum Screen Resolution that a modern web browser will run in, but I worry when using this resolution for a business website because I feel that I…
Blank
  • 7,088
  • 12
  • 49
  • 69
13
votes
1 answer

iOS - which is the better option to put images? Core Graphics(PaintCode App) vs Image files(png)

I am developing an iOS app which uses quite a few images. I am kind of confused about how to load the images in the app. A similar question was asked around 5 years ago. But a lot has changed since then. So I thought, it would make more sense to…
Harshit Gupta
  • 1,200
  • 12
  • 27
13
votes
3 answers

Referencing gradle properties in application.yml

If this question has been asked and answered, or that there is doc or an example, please forgive me. I have spent several hours looking for a solution here on stackoverflow and even more time in the gradle doc and haven't been able to make this…
drhender
  • 423
  • 1
  • 3
  • 11
13
votes
1 answer

Correct Apple Watch icon sizes and resolution?

The Apple docs are a little confusing, but what I can tell from Xcode warnings, the correct Apple Watch icon sizes are the following: 24pt = 48x48px 27.5pt = 55x55px 29pt@2x = 58x58px 29pt@3x = 87x87px 40pt@2x = 80x80px 44pt = 88x88px 86pt =…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
13
votes
8 answers

AppleScript how to get current display resolution?

I'm trying to get the current display resolution of both of my displays depending on where the mouse cursor is. i.e. when the mouse cursor is on the first display I want to get the resolution of this display. With a shell script I can get both…
dan
  • 5,377
  • 13
  • 39
  • 44