The use of interpolation to spatially stretch or squeeze an image by manipulating the underlying image data -- directly, or through API or ABI calls.
Questions tagged [image-scaling]
639 questions
7
votes
2 answers
Tumblr: How to use high-res photos in TEXT posts?
since there is no answer ins similar posts at stackoverflow, I am posting this...
When I post a TEXT post in tumblr, my images get downsized. How can I use the HI-RES of the original photo I upload?
In the template I only see this one, with no hint…

Rainer
- 103
- 1
- 7
6
votes
1 answer
A better way to use an entire image as a website background using CSS and still cater to different screen sizes? (like about.me)
Currently I'm using this:
HTML:
6
votes
2 answers
How to serve Django static files through HTTPS?
I'm getting 404 errors when accessing static files served through HTTPS but static files work fine through HTTP.
To be clear, I can access a particular page both ways e.g. http://domain.com/page and https://domain.com/page but in the HTTPS case,…

Jordan
- 71
- 1
- 3
6
votes
2 answers
android layout scaling with fixed aspect ratio on different phones
I have a layout with two ImageView inside. Each image has a fixed aspect ratio, for example first image is 320x160, second is 320x320. Layout is aligned vertically. I want this two images be glued together and scale to fit one of the screen sides…

Northern Captain
- 1,147
- 3
- 25
- 32
6
votes
2 answers
Creating multiple thumbnails in ImageMagick / GraphicsMagick
I'm currently writing a shellscript for Bash, that will create different size thumbnails for some rather massive amounts of large images.
I was wondering if it's possible to get GM/IM to create multiple sizes of thumbs in one run, to avoid loading…

Jesper Rasmussen
- 258
- 3
- 11
6
votes
2 answers
Jagged edges on images rendered in Android
I'm currently developing my first Android app and am having some issues rendering images. The image itself is great quality to begin with, but upon rendering it the quality drastically lowers. Edges become jagged and it just looks poorly done.…

Phil Fritzsche
- 81
- 1
- 3
6
votes
2 answers
How can I scale an SVG while maintaining whole pixels?
I have a pixelart-style image which intend to scale to 4x size with SVG. However, the following code blurs the pixels of the image:

Eric
- 95,302
- 53
- 242
- 374
6
votes
1 answer
Image 2x downsampling with Lanczos filter
I'm trying to implement image downsampling with Lanczos2.
However, the kernel seems to have zeros everywhere (since sin(pi*x)=0 if x is integer) except at the center pixel.
Thus, if the downsampling factor is an integer number (e.g. the output size…

Yoav
- 5,962
- 5
- 39
- 61
6
votes
1 answer
Image resizing: what is a "filter"?
I'm trying to understand how image resizing works - please, can someone explain to me what is a "filter" good for?
does a filter calculates how much a source pixel contributes to a destination pixel?
there are filters like "box" and "gaussian", but…

Ecir Hana
- 10,864
- 13
- 67
- 117
6
votes
1 answer
What is the fastest way to scale and display an image in Python?
I am required to display a two dimensional numpy.array of int16 at 20fps or so. Using Matplotlib's imshow chokes on anything above 10fps. There obviously are some issues with scaling and interpolation. I should add that the dimensions of the array…

Knut Eldhuset
- 1,789
- 3
- 16
- 19
6
votes
6 answers
Resize images in directory
I have a directory full of images that I would like to resize to around 60% of their original size.
How would I go about doing this? Can be in either Python or Perl
Cheers
Eef

RailsSon
- 19,897
- 31
- 82
- 105
5
votes
1 answer
Inconsistent image scaling on Android for android:scaleType="fitCenter"
I would like to display an image with a border. The solution below works fine for some images, but not for others.
So far my best guess is, that it works fine for smaller images but not for large ones.
With a smaller picture, the solution displays…

tzrnee
- 55
- 4
5
votes
2 answers
Can absolute divs feature in responsive design
I have started to design a photography website and I have included an absolute positioned logo in the top left hand corner. The area is made up of an absolute positioned div and an image within the div.
I was wondering whether I could make that…

Gismmo
- 329
- 4
- 12
5
votes
2 answers
Blurry downscaled images in the Chrome 84
After one of the recent Google Chrome updates, Retina images on my website became blurry. They are still Retina images (when I open the image in a new tab, it's a double-size image), but for some reason, they look blurry like non-Retina images. So,…

MikeRoss
- 53
- 1
- 6
5
votes
2 answers
CSS image's container scaling with a 100% height
I'm using an image which must auto-scale inside a div whose height is defined by the root div.
The scaling is fine in all major browsers, using height: 100% on the image itself.
But it seems that on some browsers, the image container doesn't adapt…

Arnaud Leymet
- 5,995
- 4
- 35
- 51