2,176 questions
Advice
0
votes
2
replies
91
views
How is a bicubic kernel positioned when a sample lies on an image edge or corner?
When performing bicubic interpolation, what happens when an input sample corresponds to an output pixel that lies on an image edge or in a corner?
I have learned of clamp (replicate), mirror (reflect),...
Advice
0
votes
21
replies
227
views
Bicubic, Bilinear, and Nearest-Neighbor Resampling for Image Resizing
I'm learning about image resizing and would like to better understand some of the most widely used resampling methods.
visual representation of the algorithms (approximate)
Mapping Source Pixels to ...
Score of -1
1 answer
60 views
Background image too large, not responding to size:cover; etc
The original image size is 5760x3240 px, but this apparently doesn't squish with background-size: cover; How can I get the image to respond correctly?
.container {
width: 100%;
height: 100%;
...
Score of 0
1 answer
174 views
resizing SVG makes it jagged and not smooth with magick
I have a SVG (in.svg) which I want to resize to 1200x1200 :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
x="0px&...
Score of -1
1 answer
97 views
My content is being cut in half when toggling to mobile version
I am very confused with checking responsiveness of a website I am coding through toggling the mobile version in inspect mode. So i have a basic website with nav and hero section etc. When I go to ...
Score of 2
1 answer
204 views
CPU bilinear filtering output same results than point sampling
I am adding bilinear filtering to my C++ rendering software. To validate that it works I am trying to downscale a test image.
This is the 1024x1024 test image:
When I perform point sampling resizing ...
Score of 1
0 answers
86 views
<img> max-width: 80% and also stick to integer ratio of the original image size
I have JPG images that are 1500px wide, exported with a good resizing algorithm, the edges are crispy. For responsiveness, I'm using:
img { max-width: 80%; }
It looks good on Firefox no matter the ...
Score of -1
1 answer
54 views
Relation between <a> tag and image in CSS responsiveness
i am trying to resize a image(.logo) placed in a tag. But whenever i make the image smaller, the image is get small in size but the size of tag remains same. And the space between the image and next ...
Score of 0
0 answers
118 views
Large image resize to small thumbnail
I have large JPEG images of around 2000 x 1500 (a few Megabytes in size).
I wish to resize them for display to 200 x 150 (ideally 10KB or so) in a phone app.
I'd like to know what would be the best ...
Score of 0
0 answers
78 views
Can OpenCV precompute the ResizeFilter to speed up resize operations like Intel IPPI?
I used OpenCV to resize an image (1400*750, U8C1). It took about 10ms, which is a bit slow.
I found that Intel IPPI can precompute the ResizeFilter and then perform the resize operation much faster. ...
Score of -2
1 answer
201 views
How to resize an image and keep backround empty using OpenCV
I have the following 256x256 image:
I want to resize it to 100x100 pixels using OpenCV:
img = cv2.imread('image.png')
p = 100/256
new_width = int( img.shape[1] * p )
new_height = int( img.shape[0] *...
Score of 0
0 answers
50 views
Python code is supposed to resize and rename photos a base name + 'a' 'b'...'z' -'aa' 'bb'...'zz' it instead does is 'aa' 'ab' 'ac'...ect
import os
import tkinter as tk
from tkinter import filedialog, messagebox, ttk, simpledialog
from PIL import Image
import threading
# Function to resize and rename images
def resize_and_rename(...
Score of 1
3 answers
605 views
How to Maintain Original Image/Video Resolution
I am currently facing an issue with image and video attachments in Odoo. Whenever I attach an image or video with high resolution, it gets automatically compressed and its size is significantly ...
Score of 1
0 answers
81 views
Copying a large Excel Range as Picture and getting it to stay resized
So the Problem I have is: an Excel Range copy as picture is not staying larger in the email that sends - like outlook is doing some auto resize while sending. See below code and wondering what I can ...
Score of 1
1 answer
42 views
Can't test my Tensorflow convolution model with my own drawings
I'm a beginner in tensorflow and I made a convolution model with tensorflow (sub-classing) to classify 10 different draws. For that I used the quick draw dataset with images of size (1, 28, 28, 1).
To ...
Score of 0
0 answers
23 views
Why am I getting a type error when getting user input (width, height) from html to flask?
Okay, so I’m trying to make an image resizer with flask and Pillow and I am done with the 1st two parts:
Show user uploaded images with Dropzone
Save user uploaded image as it is for now into a ...
Score of 1
1 answer
84 views
X , Y cordinates not working properly in Intevention image
Using PHP
I am trying to add watermark images,
I am using Intervention Image library for the same
I have a requirement to add a watermark a bit right side, infact a bottom-right portion of the image
...
Score of 2
1 answer
3067 views
How to resize an image in redmine so it will show up, properly resized, when a pdf is produced from the issue?
Running redmine 5.0.1 on ubuntu 22.04, we have issues containing large images. We are using text formatting style "CommonmarkMarkdown". If those images are referenced as
<img src="...
Score of 0
0 answers
136 views
Resize QPixmap in size-fixed QLabel
In my GUI there is a embeded QLabel with "fixed" Size. At least Size is fixed, if user would like to zoom in/out.
So there are many very usefull attempts with QLabels resizing due to the ...
Score of -3
1 answer
40 views
How do I change the image size of randomized images without using a CSS page?
For the website for my webcomic, I’m trying to make it so that everytime you visit/refresh the website the image changes to be a different character. I spent hours trying to get this code on my ...
Score of 1
1 answer
3843 views
How resize in YOLO impact to model accuracy?
I use YOLOv8X for object detection in photos, and recently I've been wondering about the impact of image size on detection quality. I usually use datasets from Roboflow and apply a resize to 1280x1280 ...
Score of 0
2 answers
65 views
Javascript Place Image Where User Clicks
I'm trying to use javascript to place an image overlay over an existing HTML image when the user clicks on it. I have that part working, but am wondering if it is possible to reposition the ...
Score of 0
2 answers
291 views
Android: How to scale a bitmap to fit the screen size using canvas?
My drawables are on the folder drawable-xxhdpi and the background size is 1080 x 1920.
For the screens with this resolution, all is OK.
But when I test on a samsung A34 for example with the resolution ...
Score of 0
0 answers
53 views
How to auto cropping the image from 100% to 0% without resizing itself
I didn't know how to put images on there so that we need to assume that instead of photo, I create a styled div. Let's assume that the Photo1 (background: blue) is the Original Photo while Photo2 (...
Score of 0
1 answer
109 views
My image is not resizing properly within my CSS flexbox
I created a flex container for my jpg file in html... when I go into css and add image dimensions, the image stays the exact same size with no changes at all
</head>
<div class="...
Score of 0
1 answer
164 views
Can mogrify resize an image differently, depending on its orientation?
I have folders of images that I'd like to resize to either 3000x2000 or 2000x3000, depending on the orientation.
When I attempt to resize the images like this:
mogrify -path 'thumbnails' -resize ...
Score of 1
0 answers
58 views
CSS setting max-width AND max-height for an item
I have an image with dimensions 335px X 891px.
I have CSS set to max-width:270px and max-height:530px
The result I get is...
The image does shrink and keep it's aspect ratio. It's shrinks to the ...
Score of 1
0 answers
654 views
Text Extraction from Table Image with Table in Table
I performed OCR and found that the "Observation" column is unable to extract the text, they leave the column blank in the table extracted.
These the code I tried.
from img2table.document ...
Score of 1
0 answers
56 views
(C#) How to enlarge a PNG
Image of what the game looks like currently
I'm working on a memory card matching game on visual studio code but the cards are too small
the dimensions of the actual card pngs are 2048x2048 96dpi ...
Score of 0
0 answers
317 views
ESRGAN : Required same input and output size
I am using the github ESRGAN of https://github.com/peteryuX/esrgan-tf2/blob/master/train_esrgan.py in tensorflow, and my inputs and outputs have the same size. I already have low_resolution and ...
Score of 0
1 answer
59 views
how to use division-class for image in html css?
I am learning coding...newbie.
in html: case1 I created a class inside div
` <div class="image">
<img src="./.../imageabc.jpg" alt="abc photo"/>
</div>`
...
Score of 0
0 answers
73 views
Pillow image resize breaking RGB colors in PNG file?
When I use im.resize from the Pillow library, it causes unwanted artifaction where the straight alpha colors are located. It even adds colors that weren't associated with the image at all, such as the ...
Score of 0
0 answers
35 views
php how does scaling work with imagecopyresized
as the question asks, how does it work:
I have a fixed image that is 171w x 191h and I am trying to scale it up by 50% but the new image is being cut off and skewed.
UPDATE: the image bottom is being ...
Score of 0
0 answers
60 views
Resize image does nothing in a CodeIgniter4 app
I am working on a project, I try to create a feature that resize an image previously sent in a form.
The form works correctly and I can display the images on a view.
In a little gallery, there are ...
Score of 0
2 answers
851 views
React Native - Resize Image component
I have one app in React Native and I'm trying to introduce an image in my app, but the image it's to big and the image takes up the entire screen. To fix that, I tried
imagem:{
flex: 1,
width: ...
Score of 0
1 answer
173 views
Resize all images in all sub-directories of directory file size more than 10MB
I am designing a python script resize all directory and sub directory of image file [ .png, .jpeg, .jpg] which size larger than 10 MB. I have reference to this following link Resize all images in all ...
Score of 6
0 answers
1443 views
Resizing images in a Cloudflare Worker with Denoflare and Wasm Photon
I'm trying to learn how to resize images myself in a Cloudflare Worker rather than use Cloudflare Images or Cloudflare Image Resizing (because of pricing).
There is an example using Dinoflare with ...
Score of 1
0 answers
37 views
background image resizing and repositioning not working
So i've got 2000x2000 px image and i want it to resize within different lenght monitors, here's what I did(don't mind the image link):
CSS:
body {
background-image: url("data:image/svg+xml,%...
Score of 0
0 answers
77 views
CanvasRenderingContext2D.drawImage on Apple with fractional scale results in blurry images
Our application allows users to drag & drop or select images to upload through any browser. The images are resized if larger than 960x720 and converted to JPEG at 80% quality. Our test image is a ...
Score of 0
2 answers
143 views
Resizing images to consistent width in Sheets
I need to insert images at a fixed width to keep organized on the sheet. I have been testing, just getting one image where I need it, and have so far failed.
My current version works sometimes; other ...
Score of 0
1 answer
151 views
Weird resize mode in React Native
) I have a question about the strange scaling of the image in react native, but in the component provided from the package react native gifted chat component: MessageImage.
On IOS everything looks ...
Score of 1
1 answer
65 views
I want to add a button with a image using tkinter, but my img is too big. How can I resize it, but display it as a png?
I'm learning python and tkinter from scratch, by my own. I have this button:
info = tk.PhotoImage(file= "./assets/info.png")
boton_info = ttk.Button(f2, width=30, image= info)
boton_info....
Score of 1
0 answers
47 views
How to make background photo responsive?
I have a background photo at the first of each page of my react project. The header and navbar and an introduction is placed on it. So it should almost keep its height in smaller screens somehow to ...
Score of 1
1 answer
423 views
Ensuring constant figure size when using matplotlib colorbar
I'm creating multiple plots with a colorbar in matplotlib, saving them in tight layout. I noticed that the size of the figures and the size of the axes differ for each image because the colorbar takes ...
Score of 2
2 answers
407 views
How to control photo dimensions in a Fyne window
I have tried to display a photo in a Fyne window but it is much smaller than I want it.
With a window name "w", I used "w.setContent()" to display the photo. However, it is tiny ...
Score of 0
0 answers
80 views
C# resizing image
I'm working with a project that need to realtime resizing DatamatrixCode image(using ZXing)and show on PictureBox(Visual Studio 2019), I'm originally using C# System.Drawing(because need to draw ...
Score of 0
1 answer
283 views
Problem when creating thumbnails with lambda function
I am trying to create thumbnails for photos that are in my s3 bucket, using lambda function. I have added the lambda function code inside the code editor in lambda, and have separately compiled and ...
Score of 0
1 answer
645 views
React Native: Resize an image and put it in the top of the screen
I want to resize the image to fit my desired width and height and put it in the top. This is my code:
<View style={{ flex: 1 }}>
<Image source={TOP_START_GRAPHIC} style={styles....
Score of 0
1 answer
918 views
React Native: Images positioning to the top of the screen
I have two images that i want to wrapped in a row and I want to put it in the top of the screen.
<View style={styles.container}>
<View style={styles.topWrapper}>
<...
Score of 2
1 answer
253 views
HTML-5 picture tag trying to understand the loading logic
I am playing around with the HTML5 <picture> tag and I am trying to understand how it works.
What I have got so far:
I've created the little snippet below:
<picture>
<source ...