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
3 answers

Image Resizing from SQL Database on the fly with MVC2

I have a simple MVC2 app that uploads a file from the browser to an MS SQL database as an Image blob. Then I can return the results with something like: public FileContentResult ShowPhoto(int id) { TemporaryImageUpload…
beebul
  • 993
  • 1
  • 16
  • 37
3
votes
1 answer

There is a way to *exact* resize on-the-fly an Image Object in Plone?

Just for be clear, this method is not what i'm looking for: In fact this method resize an ImageField. I want to resize an…
Alessio Dal Bianco
  • 930
  • 1
  • 11
  • 20
3
votes
1 answer

Creating memory efficient thumbnails using an NSImageView (cocoa/OSX)

I am creating small NSImageViews (32x32 pixels) from large images often 512x512 or even 4096 x 2048 for an extreme test case. My problem is that with my extreme test case, my applicaiton memory footprint seems to go up by over 15MB when I display…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
3
votes
3 answers

Downsizing Android Bitmap always results in jagged edges

I'm seeing very ugly artifacting / jagged edges when I downsize an image on an Android device no matter what I try. I've gone through several potential solutions I found on StackOverflow and blogs, and everything seems to give me similar…
spierce7
  • 14,797
  • 13
  • 65
  • 106
3
votes
1 answer

Aligning/sorting images in HTML for different sizes

So, I have this neat thumbnail PHP class that sorts images in a nice grid, but I've found that a grid isn't always the best way to display images. The problem I'm having is with an asortment of logotypes that should be displayed in an arbitrary…
Sandman
  • 2,323
  • 5
  • 28
  • 34
3
votes
1 answer

iPhone SDK: Image scaling problem

In my app I increase an images size, and decrease it, using the following code: float xx = image.frame.origin.x; float yy = image.frame.origin.y; image.frame = CGRectMake(xx,yy, width*0.98, height*0.98); float xx = image.frame.origin.x; float yy…
Sam
  • 1,343
  • 5
  • 18
  • 30
3
votes
1 answer

Save pixel position on dynamically resized image

So here is the goal of my application: Using a webcam, the user will position to points on the video of themselves. Once positioned correctly that video will save out a jpg and the coordinated of those two points will be saved relative to the size…
Shane Da Silva
  • 268
  • 6
  • 16
3
votes
1 answer

WatchOS5 - what is the "Graphic rectangular" complication image size?

I'm looking at this list of complication images for WatchOS5 by Apple, it mentions template for the graphic rectangular complication on 44mm watch being 342px × 108px (171pt × 54pt @2x) I tried sending 342x108 image, and it is too large - it…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
3
votes
3 answers

Is there a chance to make the bilinear interpolation faster?

First I want to provide you with some context. I have two kind of images I need to merge. The first image is the background image with the format 8BppGrey and a resolution of 320x240. The second image is the forground image with the format 32BppRGBA…
datoml
  • 5,554
  • 4
  • 21
  • 28
3
votes
2 answers

How to scale an image on rotation (using opencv) in java?

I am using below method to rotate an image Mat src in angle degrees, making use of opencv dll to perform this operation. However, the output image needs to be resized and re-scaled. How the scaling factor should be decided depending on rotation…
3
votes
0 answers

How to fill color in bitmap with zoom effect

I am working on an App with coloring function. User can perform pan and zooming on this image. I am using this library to add zoom effect on image. But the issue is when I zoom the image, I am not able to color to specific areas of image. In small…
Raj
  • 37
  • 4
3
votes
1 answer

Facebook-like resizing of images using ImageMagick

I would like to resize (downscale) some images the way that Facebook does it. ImageMagick, but hey, I'm open for suggestions :) I believe Facebook is doing this: Say you have a max width x height of 250x200, Facebook is optimizing the use of this.…
freeall
  • 3,187
  • 4
  • 24
  • 31
3
votes
1 answer

what is the difference between image vs imagesc in matlab

I want to know the difference between imagesc & image in matlab I used this example to try to figure out the difference beween the two but i couldn't explain the difference in the output images by myself; could you help me with that ? I =…
Yassine Bakkar
  • 107
  • 1
  • 13
3
votes
1 answer

Draw Transparent Scaled PNG

I have a large (300x300px) PNG image which I need to rescale. In an other SO question I read about StretchBlt and HALFTONE in order for better scaling. My problem is how do I draw the PNG image transparent, or at least paint the black corners…
Jens Borrisholt
  • 6,174
  • 1
  • 33
  • 67
3
votes
0 answers

Setting the correct DPI in PNG files used for WPF application

I'm very confused with how WPF is handling image rendering size under different DPI settings. So my goal is to have PNG icons in my WPF app to display clearly under the default 100% Windows DPI settings (96 DPI) as well as for 125% (120 DPI), 150%…
Leon Zhou
  • 633
  • 6
  • 20