113,562 questions
0
votes
1
answer
68
views
Do I need to include width and height attributes in the HTML for an <img> element, not just in the CSS?
I have an <img> element and at the moment I am specifying explicit values for its width and height in the CSS with no such attributes in the (X)HTML. The PowerMapper tool complains about this, ...
0
votes
0
answers
34
views
Is there a way to convert DIBv5 data from the clipboard from to a file, preserving transparency, in Python?
To simplify a process I do often, I would like to have a Python function to a) take the clipboard data, which is in dibv5 format with alpha, b) save it to a file, and c) upload it to an API. I don't ...
0
votes
0
answers
15
views
Plotting image around zero deg
I'm plotting an image using Imagsc(x,y,C) where x is an angle vector from 280 deg to 50 deg trough 0/360 deg.
I want to see the image with zero at the center. Instead I have the data from 50 to 280. ...
0
votes
1
answer
96
views
Canny detection contours and extract points from edges in Julia
I have a such task: in image find for each pore (or blob) perimeter
of contour. So, each contour I have to consider polygon (approximation) with some step value (distance between points) (for example ...
2
votes
1
answer
49
views
How to open an image, parse input from user, and close the image afterwards in Python?
This answer did not work for me, nor for some Mac users, and I did not find a working solution among the following similar questions:
How to open an image in Python and close afterwards?
How to Close ...
-1
votes
1
answer
92
views
Images are not displaying on server on angular18 [closed]
I created an application on angular18. images are displaying on local server but when i deploy my project and upload it to my hosting then imgs are not dispalying in my project.Anyone faced this ...
0
votes
1
answer
36
views
when I limit the height of my image, I see the top of the image, but I want to see the bottom of the image
I have images in a carousel, and I have set the height to 40vh. The picture looks fine, except that as the screen gets larger, it zooms to the top of the image instead of the bottom where I want it ...
1
vote
0
answers
209
views
How to Display Images on a Surface Using ExoPlayer in Android
I am using version 1.4.1 of media3.exoplayer, and I want to use ExoPlayer to display images. I found that images are listed as supported media types, but when I followed the code in the documentation, ...
0
votes
1
answer
65
views
Image is being corrupted when sent through cURL [duplicate]
I'm trying to use the following code to transfer an image file from my website to a Rackspace Cloud Files container:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://storage101.dfw1....
1
vote
0
answers
81
views
Pandoc and Reveal.js: How to create a proper image with .r-stretch helper?
As far as I understand, the .r-stretch helper class of Reveal.js can be set on an image. Here's the example of the original documentation:
<h2>Stretch Example</h2>
<img class="r-...
0
votes
0
answers
18
views
Spatie crop center issue with white background
I'm using Spatie to allow users to upload their profile image.
public function registerMediaConversions(?Media $media = null): void
{
$this->addMediaConversion('thumb')
-&...
-2
votes
1
answer
48
views
Javascript Canvas Download Clashing
I'm working on a way to download two different sized versions of the picture using a canvas to repeat an image in its background.
It works when i tested just a single download option, but it doesn't ...
0
votes
0
answers
105
views
ipx image optimisation not working on production for @nuxt/[email protected] with runtime value for NUXT_IMAGE_DOMAINS?
I am trying to update the NUXT_IMAGE_DOMAINS with dynamic ENV values during runtime and I am able to do this correctly. But, when I do this, ipx is not working as expected.
I have added domains in the ...
0
votes
1
answer
91
views
In 2025, will it be a bad idea to store images to DB in the form of a bytestream in Android? [closed]
In the past, the answer would have been 'Considering performance, save only the file path to DB', but due to the changed security policy, I am concerned about how to handle image files in the Android ...
0
votes
1
answer
155
views
NuxtImg from assets folder- Vite
I recently made two changes to my Nuxt 3 project:
Switched from @nuxt/image-edge to @nuxt/image
Moved from Webpack to Vite
Before switching to Vite and @nuxt/image, I had the following configuration ...
-3
votes
3
answers
178
views
How to share your personal image through html to a friend and let them open it and see it [closed]
I am making a webpage and I have included my personal pictures and I am trying to send my .html file to them and upon running in their pc the picture doesn't load because its not in their pc. So what ...
0
votes
0
answers
39
views
How do I set currentColor in Apache Batik?
I have a utility method which takes an SVG and uses Apache Batik to rasterize it:
public static BufferedImage rasterize(InputStream svgInput, int width, int height) throws TranscoderException {
...
1
vote
1
answer
68
views
Django not loading image files with static
I have been working with Django and it isn't loading any image files but it is loading my CSS files in the same directory area.
HTML page
<!DOCTYPE html>
<html lang="en">
{% load ...
1
vote
1
answer
66
views
Sharp keeps image processing after creating a thumbnail
I have server.js where, when uploading an image, Sharp creates a thumbnail.
The main issue is that if later I want to delete the main image, it won't let me because something is using it.
File not ...
1
vote
1
answer
51
views
Python Image Analysis: Combined Blue Coverage and Intensity Score Not Prioritizing True Blue Areas
I’m developing a Python script to rank images based on "blueness" for a colorblind accessibility project (I'm colorblind myself). The goal is to prioritize images with large blue areas over ...
-1
votes
2
answers
52
views
How to find my images in my folders using the picture element in HTML?
I have a main folder called "AltSchool", inside that i have two subfolders namely "altschool_html_assignments" and "altschool_css_assignments". In the ...
0
votes
1
answer
55
views
Image is not fully displayed after clicking
I have a photo gallery in Laravel with Tailwind and Alpine.js. The images are only in a small box as a preview, and I need to fully show up after clicking on any of the photos.
<!DOCTYPE html>
&...
1
vote
1
answer
146
views
How do I get a 3D collision with a Heightmap in Raylib?
I'm presently trying to do a sorta Starfox clone with Raylib, using the heightmap example here: https://www.raylib.com/examples/models/loader.html?name=models_heightmap
In order to handle collision in ...
0
votes
0
answers
119
views
How to draw a border around an object in a transparent image in SwiftUI without modifying the image itself?
I have a transparent image with an object in it, and I would like to add a border around the object (i.e., the edge of the object) in SwiftUI. The object is the only thing visible in the image, and I ...
2
votes
2
answers
104
views
Displaying image from Google Drive link in React problem
I have the following React component that uses a Google Drive link to get the image. The backend is written in Django REST Framework which returns the URL link for the image. The original link is ...