645 questions
0
votes
1
answer
72
views
Trying to make Image fits on differents zooms
So I'm trying to make the image fits on my screen on all zooms e.g., like when u use google chrome zoom, so when zoom is at 80% The image fits well like the following image
but once I put my zoom at ...
0
votes
2
answers
480
views
Wordpress and images stretching with Chrome and sizes="auto"
I just can't stop images that are lazy loaded in Chrome (Version 131.0.6778.109 (Official Build) (64-bit) ) with Wordpress 6.7.1 from vertically stretching.
0
votes
1
answer
138
views
Resize and convert a SVG image using a gimp script
I'm using gimp 2.10 on a Debian 12 system.
I need to use gimp because, after some manuals tests using gimp graphical interface, I noticed the quality of resized/converted images is better than with ...
0
votes
1
answer
21
views
How to display more images simultaneously in a picturebox
I am creating an app to align 2 (or more) images. I have the land registry's map and old maps with buildings, streets, terrains. Properly aligned maps then go into QGIS to display them.
To align them ...
2
votes
0
answers
65
views
How to keep same size when save pictures in python matplotlib?
I use code as below to plot graphs and save fig to png files, but all png files are not in the same size (width x height), how can I let all of them in the same size?
fig, ax = plt.subplots(nrows=1, ...
0
votes
0
answers
39
views
How to scale 2D coordinates of objects on an image, to match bilinear interp. image scaling?
How to correctly transform the points such that each point is in correspondence with the scaling of the image by the function cv2.resize(..., interpolation=cv2.INTER_LINEAR)?
Have an image and 2D ...
0
votes
1
answer
90
views
Why canvas loses scaling while drawing images on it?
I set up a canvas and apply a setTransform to scale it smaller for specific devices. On one chromium 55 device this canvas first works correctly but after some drawings it suddenly first disappears ...
-1
votes
1
answer
202
views
why an responsive image is shrinking inside flex container and not taking up whole space on responsive screen sizes?
i want to prevent the image from shrinking inside the flexbox, leaving so much space inside the flex container. In fact, the image is made responsive using the img-fluid class from bootstrap 5 classes....
0
votes
0
answers
50
views
How to make SVG's width and height of the same as children?
I'm using <use> to "grab" a <symbol> from an external SVG, the <use> element is the right size (100x100), but the <svg> still is the default (300x150). Is there any (...
3
votes
1
answer
1k
views
Next.js static assets from public folder vs cloud based storage solutions
In Next.js (or React) usually cloud based storage solutions are used for storing media files like images and, my question is, what stops us from storing images as static assets in public folder and ...
0
votes
1
answer
64
views
Fitting Picture to Full Screen Window
I am trying to get a picture to fit within the bounds of a full screen window I have created. With this code:
import sys
import random
import tkinter as tk
from tkinter import *
from PIL import Image, ...
0
votes
2
answers
66
views
Why does my wrapper not expand beyond a certain height?
To explain it as shortly as possible; I have two pictures inside a wrapper. I want these pictures to retain a ratio 3:2. I want the pictures to just push the next object further down the page. This ...
0
votes
1
answer
1k
views
Trouble scaling basic Image in Compose
My problem is very simple. Yet I have been struggling for hours. Please end my insanity.
I have a row with a box in the middle. I want to put an image in the box and make it so the image touches the ...
0
votes
0
answers
88
views
SVG: Calculate viewbox depending on path to centre
I have many SVG files who needs editing so the only polygon they have is nicely centred and fills the screen but I cannot make up my mind on how to calculate the viewbox.
Given the following viewbox, ...
1
vote
1
answer
332
views
How to Improve WooCommerce Product Category Thumbnail Quality?
I’m currently in the process of setting up the Botiga theme and have come across a little hiccup. My product category thumbnails aren’t as crisp as I’d like them to be. However, the individual product ...
0
votes
1
answer
160
views
*Inline* SVG image scales placed in *file* it does not
I have an SVG image that scales beautifully when it is inlined in my HTML, but if I move the very same SVG to a file and try to IMG or OBJECT tag that file in my HTML it simply won't scale.
(I know ...
1
vote
2
answers
297
views
Resizing TBitmap with alpha channel in Delphi
I have a TBitmap in Delphi with alpha channel. It comes from loading a PNG with a TPNGImage and then extracting the TBitmap.
This works perfectly.
Now, I want to scale this TBitmap, and I found that ...
1
vote
1
answer
185
views
Tkinter - How can I get the system display settings (scale option) in order to adjust the scale of my icons properly?
In these days I realized that there is an issue with my GUI created with Tkinter and the system display settings (scale option).
If you change the display resolution, it's ok, because the pixel are ...
0
votes
1
answer
239
views
How do I get the current height and width of a background image
The problem that I'm facing is that the image height is not scaling with the width as I want it to. I have tried background-size: cover and background-size: contain as well as using object-fit. None ...
0
votes
1
answer
2k
views
ffmpeg "Error reinitializing filters!" on some webm videos
I have a dozen of webm videos I need to resize with the following:
ffmpeg -i input.webm -vf “scale=w=360:h=270:force_original_aspect_ratio=2,fps=10,crop=360:270” output.webm
I tried the command and ...
1
vote
1
answer
201
views
Having issues with images overlapping using CSS
Initially, I had this formatted the way that I wanted. After adding and removing code over the last few hours, I'm unsure of what revision that I made that prevents me from separating the individual ...
0
votes
1
answer
245
views
How to resize an NSImageView in an NSStackView?
I'm working on a project where I want the following in an NSTableViewCell:
Image
Text
Subtitle text
The NSTableView is in a window which the user can expand or contract. When the window expands and ...
1
vote
1
answer
727
views
how can I make image take full shape size of SVG path?
I'm trying to fill the frame shape (svg path) with image of each player (dynamic image)
<Svg
xmlns='http://www.w3.org/2000/svg'
width={182.545}
style={{}}
height={221.987}
...
0
votes
1
answer
127
views
How to get scaled height of an image from known width of an html container?
I am facing a challenge on my html page to find the scaled height of an image in a container whose dynamic width is known
Let the width be var wid = 740; for desktop, it may vary based on screen size, ...
1
vote
1
answer
594
views
How to reverse (or scale down) dithering made by alternating two pixels?
I am looking for the formula (and its explanation) that gives the perceived color resulting from a quincunx arrangement of two other colors. The result is obviously not linear, because if I create an ...
0
votes
1
answer
137
views
Android scale ImageView using anchor points
The goal is: the Imageview have 4 squares on each corners. If the user touch and drag one of this, the image is scaled.
Given the image, the 4 squares and the touched square how can i implement this ...
-1
votes
1
answer
80
views
How to scale images from ppt handout files with aspect ratio?
I need to get image ScaleWidth scaling factor and set ScaleHeight the same.
How do I get the image's height or width scaling factor?
Normally code such as this would scale with lock aspect ratio, but ...
1
vote
1
answer
127
views
what is the right way to scale down an image in php
why is scaling image in php so complicated ? A lot of confusin about
imagecreatetruecolor
imagecreatefromjpeg
imagecopyresampled
imagejpeg - and so on
I simply want to scale down an image - if it's ...
0
votes
3
answers
2k
views
Responsive images different sizes
I've tried searching for this, but could not find a close enough issue.
I have a responsive web site, that looks great on a PC, but on mobile, the images of the gallery are all different sizes. The ...
0
votes
1
answer
186
views
How to make images fit the shape of each US state
I want to utilize my data to see which sports teams are selling the most trading cards by state - and have the brand image file in each respective state.
So far, I've modified my code up to this point:...
1
vote
1
answer
205
views
Button image re-size in High Resolution Screens
I have a project with a lot of button bars and a lot of graphic interfaces, the problem I have is that with graphic cards and new high-resolution monitors, when scaling, for example, 150% is set in ...
0
votes
1
answer
61
views
Scaling Wordpress images to same height inside Bootstrap flex-row flex-nowrap
I have Bootstrap integrated with Wordpress Underscores Template.
I want to make a horizontaly scrollable container with images that have the same height.
I'm stuck on the point, that I have scrollable ...
0
votes
1
answer
860
views
How do I get the complexity of bilinear/nearest neighbour interpolation algorithm? (calculate the big O)
I want to calculate the big O of the following algorithms for resizing binary images:
Bilinear interpolation:
double scale_x = (double)new_height/(height-1);
double scale_y = (double)new_width/...
1
vote
1
answer
378
views
Resizing Image object
I create Image and Graphics2D objects:
image = createImage(width, height);
buffer = (Graphics2D) image.getGraphics();
Then why this code is not working:
image =image.getScaledInstance(...
2
votes
2
answers
320
views
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 ...
0
votes
0
answers
311
views
How to resize image by one axis given a vector in form of 1d gradient?
I have an image (source) with size WxH. I have a vector of floating-point numbers 0-N of length W. I want to scale the original image column by column so that if the vector value is less than one it ...
0
votes
2
answers
276
views
android how to scale down a bitmap and keep its aspect ration
using 3rd party library which returns a bitmap. in the app it would like to scale down the bitmap.
static public Bitmap getResizedBitmap(Bitmap bm, int newWidth, int newHeight) {
int width = ...
0
votes
0
answers
367
views
How to convert CVImageBufferRef of kCVPixelFormatType_422YpCbCr8 to kCVPixelFormatType_32BGRA using Metal framework
I am working on scaling image buffers returned from AVCaptureSession using Metal kit. The default pixel format of AVCaptureSession out is kCVPixelFormatType_422YpCbCr8.
How do I convert these buffers ...
2
votes
4
answers
1k
views
Nicely scale image without external libraries
I'm using Delphi 10.4.2 and I'm trying to find a way to scale images that mantains the image quality and doesn't request external libraries.
This is what I tried, you can find the two tests in {$...
-1
votes
1
answer
56
views
Images slowing down application
In my application i have sqlite database which stores paths to images which are later displayed as items in recyclerview in different tabs in tablayout. For example in tab vegetables there are images ...
0
votes
1
answer
195
views
Why won’t the images automatically size when I upload them from the Django site
I’m new and don’t know CSS. I used a template on my Django site.
When I add image links directly on the html page, they automatically size into the picture grid.
However, when I add code and upload ...
1
vote
1
answer
460
views
Godot images scaling differently
As I started developing a system to place down things such as workbenches for my game, the images of these items started to exceeded the usual 48x48. I centre them inside a panel node(64x64), that ...
-1
votes
2
answers
60
views
Resposive photos with same height [duplicate]
How set the same height and keep proportions?
When i set height for example 70vh i have what i want but images are not proportional:
When i set height: auto; images are resposive and proportional but ...
1
vote
1
answer
374
views
Resizing a Bitmap manually
We are using a camera that acquires up to 60 frames per second, providing Bitmaps for us to use in our codebase.
As our wpf-app requires, these bitmaps are scaled based on a scaling factor; That ...
0
votes
0
answers
57
views
Questions about a research paper on salient region detection and segmentation
I am reading this paper in an attempt to recreate the salient region detection and segmentation model employed. I have the following questions pertaining to section 3 of the paper and I would highly ...
0
votes
1
answer
175
views
How do I scale an image with g.drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2)?
I need to render a large amount of images for my game and they need to be scaled to any aspect ration to fit the screen and I can't find a solution anywhere.
It already renders the image just not in ...
0
votes
3
answers
2k
views
How to fit image into the imageview perfectly without losing image quality android
Im trying to fit images perfectly in the imageView but the image dosent fit properly when i use centerCrop with adjustViewBounds but when i use fitXY with adjustViewBounds the image fits perfectly to ...
1
vote
1
answer
120
views
CodenameOne - Importing set of images in the theme
My CodenameOne app is mainly intended to be the iOS counterpart of an existing Android app. It is for older devices, in fact, as soon as possible, or in the future, a Swift app is going to replace it ...
3
votes
3
answers
2k
views
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, ...
0
votes
1
answer
2k
views
Maintain the aspect ratio of an image with CSS for small screens
I'm trying to fix the Lighthouse warning "Image elements do not have explicit width and height" to reduce layout shifts and improve CLS. The problem is that when I created my pages on a WP ...