Questions tagged [image]

The image tag is for questions related to the loading, formatting, saving, compression, and display of images in the context of source code. This tag should also be used for assistance using various image libraries. Questions about specific image formats should include the tags for those formats. Include tags to mention if the question relates to format conversion, processing, etc.

The image tag is for questions related to the loading, formatting, saving, compression, and display of images in the context of source code. Images are typically rendered as a two dimensional matrix of pixels for the case of gray-scale images, or a multidimensional matrix of pixels in the case of color images (, , etc). These may be stored in a variety of formats such as , , , , , and others (See Image file formats for further information).

Where appropriate, include tags that classify the type of question, such as , , etc.


References

113505 questions
22
votes
12 answers

How to view .img files?

I'm trying find software to view .img files. But its not expected. .img file its not all images, it contains some values too. So I would like to view the .img file. Please advise any software like that.
user441978
  • 831
  • 9
  • 17
  • 28
22
votes
2 answers

Get an array of pixels from an image file using node.js

Is it possible to get an array of RGB values from a local image file using node.js? I'm trying to write a script that takes a file path as its parameter and returns an array that represents the pixel data. function getPixelArray(filePath){ …
Anderson Green
  • 30,230
  • 67
  • 195
  • 328
22
votes
4 answers

Find similar images in (pure) PHP / MySQL

My users are uploading images to my website and i would like first to offer them already uploaded images first. My idea is to 1. create some kind of image "hash" of every existing image 2. create a hash of newly uploaded image and compare it with…
Tomáš Kapler
  • 439
  • 1
  • 4
  • 5
22
votes
5 answers

Grey out image on button when element is disabled (simple and beautiful way)

I want to grey out my images (on the buttons) when the buttons are disabled. When I have text (no images) on the button, the text is greyed out (With Images as Button Content they are not grey out). Is there any simple and beautiful way to do…
David
  • 4,027
  • 10
  • 50
  • 102
22
votes
7 answers

Multiple figures in a single window

I want to create a function which plot on screen a set of figures in a single window. By now I write this code: import pylab as pl def plot_figures(figures): """Plot a dictionary of figures. Parameters ---------- figures :
blueSurfer
  • 5,651
  • 13
  • 42
  • 63
22
votes
8 answers

How might I add a watermark effect to an image in Android?

I have an image with frames and I need to add a watermark effect. How might I do this?
info
  • 2,152
  • 5
  • 22
  • 38
22
votes
2 answers

Difference between full-range (420f) and video range (420v) for YCrCb pixel formats on iOS

Two (of the three supported) pixel formats on the iPhone 4S are: kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange kCVPixelFormatType_420YpCbCr8BiPlanarFullRange Does anyone know the difference, and are there any consequences/advantages of using one…
chris838
  • 5,148
  • 6
  • 23
  • 27
22
votes
5 answers

difference between image depth and channels

I am trying to learn opencv but its very confusing. Can someone know the difference between imagedepth and the no. of channels in an image. Suppose the image depth is 8 and no. of channels R,G,B is 3. Then , what does it signify, I am having…
leonidus
  • 363
  • 1
  • 3
  • 11
22
votes
2 answers

How to do picture overlay in HTML (something like marker on top of google map)?

Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first picture. Thanks.
smalldream
  • 223
  • 2
  • 3
  • 7
21
votes
2 answers

How to create a slowing scroll effect on a scrollbox?

I like to create a smooth slowing scroll effect after panning an image in a scrollbox. Just like panning the map in maps.google.com. I'm not sure what type it is, but exactly same behaviour: when dragging the map around with a fast move, it doesn't…
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
21
votes
3 answers

'Nearest Neighbor' zoom

When I draw a stretched Texture2D, the pixels receive a Blur-like effect. I want to use 'pixelated' graphics in my game and would like to know how to disable this in favor of the simplest nearest neighbor zoom. I've created this picture for…
Acidic
  • 6,154
  • 12
  • 46
  • 80
21
votes
3 answers

Programmatically change image resolution

I have calculated that if I want my generated image to be A4 size @ 600dpi for print purpose, it needs to be 7016x4961px @ 72dpi. So, I generate it programmatically, then test it in Photoshop and it seems to be fine so if I resize it, it gets…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
21
votes
7 answers

Change PNG Color using Javascript/jQuery and CSS

I have a black heart PNG image I want to display with different color. How can I change the color of the heart using javascript/css/jquery? I'm trying to make a shirt designer. So the background is a shirt, and the heart is the print design (among…
haifacarina
  • 1,212
  • 1
  • 12
  • 18
21
votes
5 answers

Android Add image to text (in text View)?

first post here=) I've been looking for this answer and haven't been able to find it. What I want to do is have some text, then add a image, then rest of text. For example: ____ | | Hi…
user1162299
  • 225
  • 1
  • 2
  • 8
21
votes
6 answers

Interpolation algorithms when downscaling

Im trying to understand downscaling. I can see how interpolation algorithms such as bicubic and nearest neighbour can be used when when upscaling, to "fill in the blanks" between the old, known points (pixels, in case of images). But downscaling? I…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138