Questions tagged [image-scaling]

The use of interpolation to spatially stretch or squeeze an image by manipulating the underlying image data -- directly, or through API or ABI calls.

639 questions
4
votes
5 answers

Java 2D and resize

I have some old Java 2D code I want to reuse, but was wondering, is this the best way to get the highest quality images? public static BufferedImage getScaled(BufferedImage imgSrc, Dimension dim) { // This code ensures that all the pixels…
jon077
  • 10,303
  • 11
  • 39
  • 37
4
votes
1 answer

SVG property vector-effect="non-scaling-stroke" still scales stroke

In SVG, I need the PATH stroke width to remain as is while viewBox property is changing. The SVG property vector-effect="non-scaling-stroke" should accomplish that but it is not working as it suppose to. Can someone explain why in the code below…
Fahad Alrashed
  • 1,272
  • 2
  • 11
  • 17
4
votes
1 answer

Python GTK resizing large image to fit inside a window

Important note: I'm using PyGObject to get access to the GTK widgets, not PyGTK. That's what makes this question different from similar ones: PyGTK: How do I make an image automatically scale to fit it's parent widget? Scale an image in GTK I want…
illright
  • 3,991
  • 2
  • 29
  • 54
4
votes
3 answers

Resize existing images in s3 bucket/folder

I have a thousands of existing images in s3, and I need to resize all images from one folder, and put it in another folder, but still in one bucket. Is there any solution to resize it with or without lambda? And what trigger shoud I use? Thanks in…
tukangketik
  • 53
  • 1
  • 3
4
votes
9 answers

How to resize dynamically loaded image into flash (as3)

Am struggling to find the right as3 code to resize an image once it is dynamically called into the stage and placed in a MC. I am loading using: var myLoader :Loader = new Loader(); mc.addChild(myLoader); var url :URLRequest = new…
Edbro
  • 61
  • 1
  • 1
  • 5
4
votes
2 answers

Images are not resizing outside of mobile view - Bootstrap

I am working on a container-fluid full width site with a fixed side bar using bootstrap. http://nickmask.github.io/index.html My images in my mainContent container are not re-sizing at the tablet size or above. If I drop down to mobile size they…
Nick
  • 135
  • 8
4
votes
2 answers

Scale image in Canvas with offset origin

I've been struggling with this for a few days now. My question is based on code you can find here - http://codepen.io/theOneWhoKnocks/pen/VLExPX. In the example you'll see 3 images, the first scales from the [0,0] origin, the second from the center…
theOneWhoKnocks
  • 600
  • 6
  • 13
4
votes
2 answers

How to specify the image scaling algorithm used by a WPF Image?

Is there a way to specify how an image is scaled up in an Image element with LayoutTransform set to a ScaleTransform with integer values for ScaleX and ScaleY? I want to display the scaled image crisply (ie using 'nearest neighbour' scaling), with…
mackenir
  • 10,801
  • 16
  • 68
  • 100
4
votes
1 answer

Java Image Re-sizing - Nearest Neighbor

I am trying to re-size an image with Java, and I need to get the exact effect that is happening when you re-size with Photoshop Nearest Neighbor (Preserve hard edges). The thing is I never get the exact same effect... I tried following methods: 1)…
4
votes
1 answer

Android : How to fill colors in a Bitmap after zooming?

I am making an App with coloring book. I have found a library byronsanchez/coloring-book-android, using which I am able to do the coloring fine. However, I need to implement zoom for the same. I have used ScaleImageView for zooming purpose. The…
user1952459
4
votes
1 answer

IE6 image scaling with bicubic filter

I have a project where I have to resize some images in the actual browser side. IE8, FF3 et al all apply a filter to smooth the resizing of the image, so in these browsers everything looks good. In IE7 I have applied the following fix which works…
rickhuby
  • 174
  • 10
4
votes
1 answer

OpenCV: use homography for different image sizes

I calculate the homography matrix of an image using OpenCV's findHomography and then I warp the image using warpPerspective function. Now I want to use the same homography matrix for a scaled version of the image (the scaled version has the same…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
4
votes
1 answer

How do I know what size to make retina images?

I'm trying to understand how to calculate just how much bigger to make images for 'Retina' quality screens. I understand that the general answer is just 'x2' but it's never explained why this is. For example, let's take a MacBook Air vs. the new…
SparrwHawk
  • 13,581
  • 22
  • 61
  • 91
4
votes
5 answers

dynamically scale images in php jpg/png/gif

Is there a simple way of dynamically scaling an image in php? Id like to specifically use some kind of function where i can insert it into my heml such as and of course it would then scale the image to…
mrpatg
  • 10,001
  • 42
  • 110
  • 169
4
votes
3 answers

Auto scale and rotate images

Given: two images of the same subject matter; the images have the same resolution, colour depth, and file format; the images differ in size and rotation; and two lists of (x, y) co-ordinates that correlate the images. I would like to know: How do…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315