Find specific color in image

I have an image like this: and like to find a specific color in the image (#ffa400 / #ffffff) and get their percentage occurrence value (orange maybe: 75%, white: 25%) NOTE: Keep in mind that I don't like to get the average color (in this case...
more »

2017-12-02 15:12 (1) Answers

Find specific color passage / spectra in image

I have an image like the example below... ---> RESULT: #ffdf00 => something like 30% ... and I'd like to find the occurrence (percentage) of a specific color in the image (e.g. #ffdf00 - yellow), or even better I'd like to find the occurrence (pe...
more »

2017-12-02 13:12 (0) Answers

Image doesn't appear on MYSQL database

My problem is that if i try to post a image trought my website to my database called photos they don't appear there. Images do appear inside the folder i created upload/img. My database photos table is called images with 2 rows. id int(11) and image ...
more »

2017-11-23 18:11 (2) Answers

Saving to EPS not supported in Python Pillow?

I am trying to convert an image from PNG to EPS using Pillow. The following code gives an error: from PIL import Image Image.open("Image1.png").save("Image1.eps", fmt='EPS') Which reads: Traceback (most recent call last): File "C:/Users/pbreac...
more »

2017-11-20 18:11 (0) Answers

ASP MVC 5 Image Display

In my Visual studio project, i have a folder where i am storing an Image. The path to this image is stored in the SQL Server DB and im trying to display this image in the view. From the research i have done so far, a HTML helper needs to be created, ...
more »

2017-11-20 14:11 (3) Answers

Why get_full_filename error happens in matlab?

I want to read all images in specific folder and save it to 64*64 size jpg images. But the error occur and I don't know why and what to do. Pleaes help me Error code : File "Nikon_D70_0_19458.tif" doesn't exist Error: imread (line 340) fullname ...
more »

2017-11-19 04:11 (1) Answers

PHP Post data not received

im currently working on a small script for my Homepage but i ran into an problem. I Try to upload an Image, but it seems like the POST data from the form is not being received. What did i do wrong? I already changed the post_max_size and everythi...
more »

2017-11-19 02:11 (1) Answers

How to show the only part of the image

UPDATE Since the question was complicating and unclear, I'm rewriting my question to make it much simpler. Given image (image uri for entire image; 600x600 image from the example) left(x-coordinate; 50 from the example) top(y-coordinate; 100 ...
more »

2017-11-18 04:11 (1) Answers

identify video / pictures

I wonder how I can identify a video or a picture by just reading the bits and bytes of the source file (original file)? e.g. a friend of mine works with video and picture material. he cuts and modifies the files and makes funny material out of it. N...
more »

2017-11-17 11:11 (0) Answers

Django 1.11 Image Gallery with Django Filer

Problem I need to display a gallery of images on a product page. This worked when we were at Django 1.6, but have since upgraded to Django 1.11 (Big Process). I am now stuck at how to get this to work within the new environment. Right now clicking A...
more »

2017-11-14 22:11 (1) Answers

Image deduction with Pillow and Numpy

I have two images: and I want to export an image that just has the red "Hello" like: So I am running a simple deduction python script: from PIL import Image import numpy as np root = '/root/' im1 = np.asarray(Image.open(root+'1.jpg')) im2 ...
more »

2017-11-13 14:11 (1) Answers

Extract colored line from numpy image

I have an image that features a colored curve. I want to extract for each row the index of the higher pixel of the curve. This code works, but is quite slow (fis the image, magic is the RGB code of the line color): res = f.shape[0] magic = 146, 47...
more »

2017-11-11 18:11 (1) Answers

Display an Image Without Pushing Down Content

I am using a template that was purchased to develop a site, and need to insert an image on the page without pushing the content down. Below is the link to the page I am working on: http://www.onepropertyway.com/WorkOrder/default.aspx?woid=26&...
more »

2017-11-11 05:11 (3) Answers

Unable to load images from framework in my project

My project structure is in such a way that I have 2 projects named as ProjectA and ProjectB. Now for these 2 projects, I have created a framework named as ProjFramework. I have added common files of these 2 projects inside the framework and then ad...
more »

2017-11-07 12:11 (2) Answers

Downloaded image doesn't show in gallery

In my application when i download an image ,it downloads but doesn't show in gallery image whats the problem? i tried to use mediaScanner but it doesn't work for me. thanks. Storage sss = SimpleStorage.getExternalStorage(); ...
more »

2017-11-07 08:11 (2) Answers

Django passing variables into string

I'm trying to pass: >img src="{% static '/static_dirs/images/itcg/01_{{ card_id }}.jpg' %}" alt="{{ card_id }}"> to load image with file name 01_xx.jpg, but the result is just xx without image. Basically what happens is that {{ card_id }} wo...
more »

2017-11-05 09:11 (1) Answers

Memory Image not appearing in flutter?

I'm trying to get my Flutter Image.memory to work and I'm only getting a blank space. I'm trying to do this from a base64 string. Here is the string... SW1hZ2UoaW1hZ2U6IEFzc2V0SW1hZ2UoYnVuZGxlOiBudWxsLCBuYW1lOiAiYXNzZXRzL3BsYWNlaG9sZGVyLnBuZyIpLCB...
more »

2017-10-30 04:10 (2) Answers

ModelForm disable imageField if empty

I have a form that allows users to upload an image. If they don't upload an image a default image is displayed. I want it that if they don't upload an image, the image field is disabled. I thought the if statement at the end of the form would work...
more »

2017-10-29 15:10 (2) Answers

images not accessible by Vaadin Spring Application

In the example given here: https://vaadin.com/docs/framework/application/application-resources.html the images-folder is put inside the WEB-INF directory of the application. In my Vaadin Spring application, I do not have a WEB-INF directory, so I ...
more »

2017-10-23 22:10 (1) Answers

iOS11 image rendering issues

On IPhone devices with iOS11 I am having issues with rendering of images. What I am doing is lazyloading a list of images on scroll but randomly some images fail to render. I have tried debugging on Safari desktop and it shows that img tag does have ...
more »

2017-10-23 20:10 (1) Answers

how to save image from folder to database

$result=$db->query("SELECT * FROM Table WHERE id='2' "); while($row = $result->fetch_array()) { $id=$row["id"]; $URL=$row["URL"]; } insert img to database MySQL: $files_name = "folder/$URL"; #$files_name = "folder/img.jpg"; $fileSize = ...
more »

2017-10-20 08:10 (1) Answers

iOS 11 MediaToolbox Crash

Getting a crash when loading an image from the server. It's exclusive to Plus devices running iOS 11+ so I suspect it may be on Apple's end. Haven't been able to reproduce manually but it's happening to users occasionally. Anyone else experiencing an...
more »

2017-10-19 17:10 (0) Answers

How can I check if a jpeg will fit in memory?

Opening a JPEG image using imagecreatefromjpeg can easily lead to fatal errors, because the memory needed exeeds the memory_limit. A .jpg file that is less than 100Kb in size can easily exceed 2000x2000 pixels - which will take about 20-25MB of memo...
more »

2017-10-17 22:10 (1) Answers

How can I control the brightness of an Image?

I have the following problem: I want to create a method to control the brightness of an Image. I think I have to convert it to a BufferedImage before. And if the Image has an alpha channel and I want to convert it with TYPE_INT_RGB the alpha pixels ...
more »

2017-10-17 21:10 (2) Answers

Image SEO "content disposition filename" or url?

How does web crawlers index images in the case where you have a service which processes images on the fly and does not have image specific endpoint e.g. "image.jpg", but adds a filename as a content-disposition header? Does it use the url or filenam...
more »

2017-10-11 23:10 (0) Answers