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
10
votes
2 answers
Chrome is stretching the height of my max-width image
I'm having trouble with setting the max-width of my images in a CMS I'm using. In Chrome (untested in other browsers yet), setting a max-width stretches the height of the image I insert - see here:…

Osu
- 1,137
- 2
- 18
- 34
10
votes
1 answer
Google Drive API changes thumbnailLink value on every GET request?
I'm uploading some images to our GDrive account (via API) so I can publish them in our webapp.
I like to post thumbnailLink because of the =s parameter where you can scale the image to a desire width.
But now I've found a problem:
everytime I make…

Francisco Costa
- 6,713
- 5
- 34
- 43
10
votes
2 answers
Scale an image which is stored as a byte[] in Java
I upload a file with a struts form. I have the image as a byte[] and I would like to scale it.
FormFile file = (FormFile) dynaform.get("file");
byte[] fileData = file.getFileData();
fileData = scale(fileData,200,200);
public byte[] scale(byte[]…

Sergio del Amo
- 76,835
- 68
- 152
- 179
9
votes
2 answers
Image scaling worse in latest Webkit (including Safari 5.1)?
I've been working on something that relies heavily on large images being scaled down with CSS/JavaScript. Before Safari 5.1 came out, I noticed that the images were nice and smooth in Safari, but kind of jagged in Chrome. Now Safari 5.1 seems to be…

Bart S.
- 131
- 2
- 8
9
votes
1 answer
How to fix pinch zoom focal point in a custom view?
For my question I have prepared a very simple test app at Github.
For simplicity I have removed flinging, scroll constraints and edge effects (which actually work well in my real app):
So the custom view in my test app only supports…

Alexander Farber
- 21,519
- 75
- 241
- 416
9
votes
2 answers
Scaling image with CSS Transition
This is how I want to scale my images, smoothly without any jumps.
My attempt does not work like in the gallery above, the image (red square in my case) jumps, my code:
section {
background-color: rgba(0, 0, 0, 0.701961);
width: 400px;
…

Piotr
- 343
- 1
- 6
- 14
8
votes
10 answers
Image resizing - sometimes very poor quality?
I'm resizing some images to the screen resolution of the user; if the aspect ratio is wrong, the image should be cut.
My code looks like this:
protected void ConvertToBitmap(string filename)
{
var origImg =…

eflorico
- 3,589
- 2
- 30
- 41
8
votes
5 answers
Create thumbnail and reduce image size
I have very large images (jpg) and i want to write a csharp program to loop through the files and reduce the size of each image by 75%.
I tried this:
Image thumbNail = image.GetThumbnailImage(800, 600, null, new IntPtr());
but the file size is…

leora
- 188,729
- 360
- 878
- 1,366
8
votes
3 answers
Scale image to completely fill bounding box
For instance, if I need to fill a bounding box that is 100px wide by 50px tall, the following input images would have the following behavior:
200w x 200h gets scaled down 50% and
25% gets chopped off the top and
bottom.
200w x 100h gets scaled down…

Larsenal
- 49,878
- 43
- 152
- 220
8
votes
2 answers
What algorithm is in use by the new Windows 10 Magnifier?
The new magnifier in Windows 10 creates very interesting results with "Enable bitmap smoothing" checked.
What is the name of the algorithm that is in use here? How can I achieve these impressive results? The vectors being generated by this magnifier…

Fredrick Brennan
- 7,079
- 2
- 30
- 61
8
votes
4 answers
scaling an image, but keep its proportions
I want to scale images, but I don't want the image to look skewed.
The image has to be 115x115 (length x width).
The image can't be over 115 pixels high (length), but if needed, the width can be less than 115 but not more.
Is this tricky?

mrblah
- 99,669
- 140
- 310
- 420
8
votes
8 answers
Blackberry - how to resize image?
I wanted to know if we can resize an image. Suppose if we want to draw an image of 200x200 actual size with a size of 100 x 100 size on our blackberry screen.
Thanks

Bohemian
- 5,957
- 11
- 38
- 47
7
votes
1 answer
Anyone who can explain the principle of hq2x algorithm?
I do not know the detail steps of hq2x algorithm. Although I have downloaded the source code from website, I still cannot understand the steps from the source code. Can anyone help me to explain how to do the algorithm step by step? Thank you!

Xiao_ga
- 165
- 7
7
votes
1 answer
How to resize a network image before showing it as NetworkImage in flutter web?
My goal is to increase the performance of my website by downscaling images.
When i show NetworkImages they always render the full source image resolution (e.g. 7000x4667 pixel). The widget itself mostly has a smaller size (e.g. 200x200 pixel). I…

Franz
- 600
- 1
- 4
- 12
7
votes
2 answers
Elm: Get the size of an image
I am trying to get the width and height of an image, so give a URL, what is the width and height of that image

Anis Jonischkeit
- 914
- 7
- 15