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
2
votes
0 answers

How should scale overlay image?

I have a simple function for creating image overlay. public String getMyPath(Application app, Context c) { String path = Environment.getExternalStorageDirectory() + "image.jpg"; Bitmap bmap = BitmapFactory.decodeFile(photo); Bitmap…
Misko
  • 104
  • 7
2
votes
1 answer

Resizing and encoding large Tiff images on the server without GDI+ or WPF

Perhaps I'm doing it wrong but I don't think WPF or GDI+ classes are intended to process large images on a server. I have an app that needs to transform many large tiff files to different formats and sizes. Thumbnails and previews of these files…
JoseMarmolejos
  • 1,760
  • 1
  • 17
  • 34
2
votes
5 answers

copy, resize, move image with php

I'm looking to copy, resize, and move an image. This is simular to how wordpress creates different sizes of the images when you upload. I want this to be executable without uploading anything just running when you run the page. example: $imagePath…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
2
votes
0 answers

Cutting an image from a specific place

I have the following row items inside my horizontal recyclerview - As you can see, the items I get from the server are wide. What I want is to cut the image width by some value, but I want the cut to take place from where the line starts until the…
Alon Shlider
  • 1,187
  • 1
  • 16
  • 46
2
votes
5 answers

How to create thumbnails within PostgreSQL

I want to store images and other documents in a PostgreSQL table, along with a thumbnail of each image. The original document and the thumbnail would be two separate bytea fields. PostgreSQL is running on Linux. Because the image data could come…
Rob McDonell
  • 1,309
  • 9
  • 15
2
votes
1 answer

Image FILL logic such as "Stretch.Uniform" of WPF

I'm looking out for an Image FILL logic to apply in my console application, which generates TIFF file. I have image container dimension as 1200 * 1800 pixel. Have applied below logic to get resize the image to fit in this dimension, but this logic…
Arayn
  • 986
  • 1
  • 16
  • 24
2
votes
2 answers

Image in CSS grid won't resize to the max. size

I am trying to create an HTML modal and I wanted to create the base HTML and the CSS in an external file first. The final output should look this: Design Mock The goal here is for the minimap to scale with the size of the modal while keeping the…
Ironlors
  • 173
  • 3
  • 19
2
votes
1 answer

Split step Fourier propagation - Beam propagation method

Hello I'm having a difficulty using the split step Fourier method. Assuming I want to propagate a Gaussian in free space, I'm supposed to use: A(x,z) = F^-1 [exp((i*k^2*z)/(2*k_0))* F[A(x,0)]] where F is the Fourier and F^-1 is the inverse…
FlyGuy
  • 31
  • 6
2
votes
1 answer

Is it possible to make an image centerInside with a blurred background with glide library?

I am familiar with fitcenter and centercrop in glide. But is it possible to make something like this image Any ideas to achieve it?
2
votes
4 answers

Is it possible to scale an image proportionally both on width and height based on a fixed container?

Suppose we have an image that is 400x200 and another that is 200x400 and I want them to fit in a 200x200 box so the first should be scaled to 200x100 and the second to 100x200 We won't know the dimensions of the images in advance. [edit] Plenty of…
Samus_
  • 2,903
  • 1
  • 23
  • 22
2
votes
1 answer

Android - determine specific locations (X,Y coordinates) on a Bitmap on different resolutions?

My app that I am trying to create is a board game. It will have one bitmap as the board and pieces that will move to different locations on the board. The general design of the board is square, has a certain number of columns and rows and has a…
Alex
  • 319
  • 6
  • 14
2
votes
3 answers

Matlab - Scale down an image using an average of four pixels

I have just started learning image-processing and Matlab and I'm trying to scale down an image using an average of 4 pixels. That means that for every 4 original pixels I calculate the average and produce 1 output pixel. So far I have the following…
formap
  • 35
  • 1
  • 5
2
votes
1 answer

Swift true image height

I have got a UIImageView in a UIScrollView. For this I am trying to set the minimum zoom scale so that the whole picture fits in. However sometimes it is being displayed too small. I have reduced the problem to self.scrollView.minimumZoomScale =…
Hans
  • 2,354
  • 3
  • 25
  • 35
2
votes
2 answers

Naming conventions for different sizes of an image

We're using a thumbor image server to automatically generate different resolutions of images uploaded by our users. The images are used at different locations: medium-sized profile pictures, small images at listings, larger images at detail pages,…
cweiske
  • 30,033
  • 14
  • 133
  • 194
2
votes
1 answer

C++ How to best scale image by dropping pixels

I am capturing a frame of data from an imager with a resolution of 102 x 77. I want to downsample this to 80 x 60. Quality is not the main concern but ease of implementation and speed are. I believe I can accomplish this by roughly dropping every…
PhilBot
  • 748
  • 18
  • 85
  • 173