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
3
votes
1 answer
How do browsers handle image resampling when resizing an image in canvas?
Hi, I'm creating a video game using the canvas element and jQuery. Part of this requires drawing arched paths and circles. Unfortunately this creates subpixels and an antialiasing problem. No browser allows you to simply disable the antialiasing, so…

Andrew Bob Garrett
- 31
- 1
3
votes
1 answer
Image overlaps with other images when scaled
I am programatically adding ImageView elements into a horizontal Linear Layout. Then I set the scaleX and scaleY properties to "2" on one of the ImageView resources. The image gets scaled properly, but it doesn't move the other ImageView elements,…

user1718159
- 561
- 1
- 6
- 12
3
votes
3 answers
Best Way to Dynamically Resize Pictures
This is kind of a vague question, but I'm looking for suggestions and perhaps suggestions from people that have had experience with this issue. I have a PHP array of different sized images of products that I want to display on my web page with four…

Jon Rubins
- 4,323
- 9
- 32
- 51
2
votes
6 answers
How can I crop/scale user images so I can display fixed sized thumbnails without skewing and stretching?
I'm working on allowing users to upload profile pictures for my site. The classic example of what I'm trying to avoid is plentyoffish.com where each users image is skewed and looks very ugly:
So, how can I progmatically crop/create standard sized…

KingNestor
- 65,976
- 51
- 121
- 152
2
votes
2 answers
jQuery or PHP seamless image gallery
I'm looking for a way to display a gallery of images of various widths and heights so that there are not any spaces between them.
Something like this solution, but compatible with IE and would prefer horizontal rows rather than vertical columns:…

totallyNotLizards
- 8,489
- 9
- 51
- 85
2
votes
1 answer
Google App Engine. Resize only big images with get_serving_url()
I have created website where users can upload image with any size.
I have served images with get_serving_url function.
I have added to end of image modifiers to resize image to 200px…

Anton Danilchenko
- 2,318
- 1
- 25
- 24
2
votes
0 answers
Phonegap application not scaling images properly on Android 2.1
We have developed an application using Sencha Touch and PhoneGap which works flawlessly on iOS devices. It's now time to port the app to the Android OS, which in most cases works great, except when the app is run on a device running Android…

howettl
- 12,419
- 13
- 56
- 91
2
votes
2 answers
Nearest Neigbour Interpolation code using OpenCL kernel
I need to write an OpenCL kernel. Via kernel argument I get an input image with a certain dimension (example: width: 600px, height: 400px). The algorithm I need to run is: "Nearest Neighbor Interpolation".
In the image below, one starts from pixel…

AntoBoy
- 64
- 5
2
votes
1 answer
Jquery/UI/Effects/Scale plugin not working on images
I'm using the JqueryUI/Effects/Scale plugin to shrink/grow divs and the content inside. It works great for text and even embedded youtube clips, but doesn't scale images contained within. Is there a workaround for this?

Ben Jones
- 919
- 1
- 8
- 22
2
votes
3 answers
scale an image to fit TOP and RIGHT in android ImageView
I use an ImageView, I want the source image to fit to the TOP and RIGHT.
FitEnd scaling fits BOTTOM and RIGHT
all other scale enums don't help much as well
any idea?
Thanks

Gilad
- 643
- 1
- 7
- 20
2
votes
3 answers
Using JQuery / javascript to create a dynamic image: what am I doing wrong?
please have a look at the following code: (I removed all doctypes etc for readability).
I guess the code is pretty self-explaining: The javascript code retrieves the height and width from the image below and creates two new variables (newHeight and…

Frank
- 1,374
- 2
- 16
- 34
2
votes
1 answer
inJustDecodeBounds for Bitmaps in Android
I'm investigating how to download an image from an url avoiding memory crashes.
I've checked that link (is for load a image specifying the desired size)
Strange out of memory issue while loading an image to a Bitmap object
My question is:
Adapting…

yonryl
- 21
- 3
2
votes
0 answers
How to get original image (height and width) without scaling
The algorithm scale down height and width of image and make it look like a center_crop image. i want to get orginal image height and width.This code is from gpu image library. please help
private void adjustImageScaling() {
float outputWidth =…

Awele studio
- 61
- 5
2
votes
1 answer
Quick way to convert image 3 channels depth to 1 channel in Python?
I'm working on fer2013 dataset, as you can see in the code the output got 48, 48, 3) which is 3 channels dept, that can't be used in Conv2D layer. I want it's just 1 channel dept - ( 48, 48, 1). so is there anyway to convert the x_train and x_test…

frankenstein
- 125
- 2
- 11
2
votes
1 answer
Safari not scailng image properly
I have found lots of similar issues on stackoverflow but none really replicating what I have to deal with. I am hosting a website on Azure and I found this strange thing. When I display it on Safari (either on iPhone or Mac) it scales improperly. If…

Tomasz Bachosz
- 33
- 4