Category "image"

Why is Chrome's onerror event for the img element only fired once?

Why is Chrome is only calling the onerror event for the img element one time when all other browsers (IE7,8,9, FF, Opera, and Safari) all call it repeatedly? I

Viewing unused images in Strapi

I have users who add images to a Strapi Media Library. I can't tell if images are actively used or not. I would love to clean out images taking up space that

Why does Tkinter image not show up if created in a function?

This code works: import tkinter root = tkinter.Tk() canvas = tkinter.Canvas(root) canvas.grid(row = 0, column = 0) photo = tkinter.PhotoImage(file = './test.g

How to make layout with rounded corners..?

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

Write PNG file with less disk size in Java

I have a BufferedImage: BufferedImage bi = new BufferedImage(14400, 14400, BufferedImage.TYPE_INT_ARGB); I have saved this image to a PNG file using the fol

Image to pdf convertion in flutter

I am currently working on a photo scanner app in flutter and searching for a way to convert images to pdf. It would be great if anyone helps me

How to display picture into div with jquery

Is anyone can tell me how can I modify below code to display picture into a div when user click in link ? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans

Armadillo porting imagesc to save image bitmap from matrix

I have this matlab code to display image object after do super spectrogram (stft, couple plca...) t = z2 *stft_options.hop/stft_options.sr; f = stft_options.

matlab's imshow3d mouse scrolling image visualization in python

Currently, I am trying to build a User Interface with python to visualize MRI images (in numpy) in 'tkinter' Graphic User Interface. The feature of mouse scrol

img tag not working with relative path in src

This is not working: <img src="../assets/images/image.jpg" alt="Alternative Text"> But this is working: <img src="http://localhost/abc/def/geh/asse

How to write a text + emojis on an background image with node js

This is a very unspecific question, but I couldn't find any reasonable help in the internet to complete this project on my on, so I thought here may be somebody

CSS: How to scale an <img> to cover entire parent <div>? [duplicate]

http://jsfiddle.net/Log82brL/15/ This <img> isn't shrink wrapping as I would expect with min-width:100% I'm trying to shrink the <im

Automatically cropping an image with python/PIL

Can anyone help me figure out what's happening in my image auto-cropping script? I have a png image with a large transparent area/space. I would like to be abl

Determine if a point is inside or outside of a shape with opencv

I have images with white background and simple shapes in them (each image has one shape). I want to determine if a certain point (x,y) is inside the shape or no

React Parallax wont load Image

I'm trying to replicate this Parallax effect Here and it doesn't seem to load my image. I am using the React Scroll Parallax Here but I can't figure out why my

Laravel Blade html image

My image file path is public/img/stuvi-logo.png and my app.blade.php file path is resources/views/app.blade.php Inside of my app.blade.php file I use {{HTML::im

JPEG Compression using OpenCV

I'm trying to perform a basic JPEG Compression (DCT + quantization + IDCT) using OpenCV not using entropy-encoding/Huffman-coding. The problem is that after I d

Converting a text XHR-Response to arraybuffer

I'm making an XHR request. At the time of making the request, I don't know whether the URL will return an image or not, so I'm setting xhr.responseType="text"

Python: Image resizing: keep proportion - add white background

I would like to create a Python script to resize images, but not changing its proportions, just by adding a white background (So, a : 500*700 px image would t

Image.network throw error even after defining errorBuilder in Flutter

I am facing some issues with loading images from URLs in Flutter. Here is my code: @override Widget build(BuildContext context) { return ClipRRect(