2,181 questions
-1
votes
1
answer
42
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?
<html>
<body>
<div class="...
0
votes
1
answer
107
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&...
0
votes
1
answer
78
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 ...
2
votes
1
answer
169
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 ...
1
vote
0
answers
65
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 ...
-1
votes
1
answer
39
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 ...
0
votes
0
answers
74
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 ...
0
votes
0
answers
65
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. ...
-2
votes
1
answer
179
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] *...
0
votes
0
answers
42
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(...
1
vote
3
answers
474
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 ...
1
vote
0
answers
72
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 ...
1
vote
1
answer
25
views
Can't test my Tensorflow convolution model with my own drawings
I'm a begginer on tensorflow and I made a convolution model with tensorflow(sub-classing) to classify 10 differents draws. For that I used the quick draw dataset with images of size (1, 28, 28, 1).To ...
0
votes
0
answers
21
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 ...
1
vote
1
answer
77
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
...
2
votes
1
answer
2k
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="...
0
votes
0
answers
69
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 ...
-3
votes
1
answer
36
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 ...
1
vote
1
answer
3k
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 ...
0
votes
2
answers
59
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 ...
0
votes
2
answers
212
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 ...
0
votes
0
answers
51
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 (...
0
votes
1
answer
99
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="...
0
votes
1
answer
138
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 ...
1
vote
1
answer
2k
views
Telegram gif dimensions are invalid [closed]
GIF dimensions are invalid. Must be 320x180, 640x360 or 960x540 pixels.
I tried to use a resize app and it still didn't work. I have even used a regular gif from my keyboard and it doesn't work. When ...
1
vote
0
answers
47
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 ...
1
vote
0
answers
586
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 ...
1
vote
0
answers
54
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 ...
0
votes
0
answers
292
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 ...
0
votes
1
answer
48
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>`
...
0
votes
0
answers
67
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 ...
0
votes
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 ...
0
votes
0
answers
58
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 ...
0
votes
2
answers
810
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: ...
0
votes
1
answer
158
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 ...
6
votes
0
answers
1k
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 ...
1
vote
0
answers
35
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,%...
0
votes
0
answers
72
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 ...
0
votes
2
answers
115
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 ...
0
votes
1
answer
141
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 ...
1
vote
1
answer
52
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....
1
vote
0
answers
46
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 ...
1
vote
1
answer
349
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 ...
2
votes
2
answers
364
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 ...
0
votes
0
answers
73
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 ...
0
votes
1
answer
235
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 ...
0
votes
1
answer
634
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....
0
votes
1
answer
850
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}>
<...
2
votes
1
answer
213
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 ...
0
votes
0
answers
22
views
Resizing Div with position absolute defined
I'm trying to auto resize the elements with images on it and using position at the same time. Works fine in a PC screen but it does not works with cellphone or even when the PC screen is resized.
So, ...