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
5 answers

Resources for image distortion algorithms

Where can I find algorithms for image distortions? There are so much info of Blur and other classic algorithms but so little of more complex ones. In particular, I am interested in swirl effect image distortion algorithm.
Jonas
  • 2,910
  • 2
  • 26
  • 36
22
votes
2 answers

python imaging library: Can I simply fill my image with one color?

How can I fill an existing image with a desired color? (I am using from PIL import Image and from PIL import ImageDraw) This command creates a new image filled with a desired color image = Image.new("RGB", (self.width, self.height), (200, 200,…
Antonio
  • 19,451
  • 13
  • 99
  • 197
22
votes
4 answers

retrieve absolute path when select image from gallery kitkat android

As I am supporting my app to Kitkat version, now in this the way of retrieve file from gallery was different. I have preferred this Android Gallery on KitKat returns different Uri for Intent.ACTION_GET_CONTENT for retrieving file from gallery and…
Pratik
  • 30,639
  • 18
  • 84
  • 159
22
votes
4 answers

imageio.IIOException: Can't read input file

I've started Java a week ago, and now I would like to insert an image into my window. Whatever I try I keep having this in Eclipse: javax.imageio.IIOException: Can't read input file! package graphics; import java.awt.Color; import…
trolologuy
  • 1,900
  • 4
  • 21
  • 32
22
votes
4 answers

How to convert System.IO.Stream into an Image?

How can I convert a Stream of an image (which I retrieved using the Album.GetArt method from the MediaLibrary) into a usable Image in my application?
Newbie
  • 1,160
  • 2
  • 11
  • 24
22
votes
4 answers

jQuery: Easiest way to wrap an image tag with an A anchor tag

This is a simplified version of my problem. I have two buttons, and one image. The image code is something like this When I press button one I want the image to be wrapped in an A tag, like
cannyboy
  • 24,180
  • 40
  • 146
  • 252
22
votes
3 answers

Dynamically adjust text color based on background image

I am working on a product that outputs images from users and the image information is overlayed on top of the aforementioned images. As you might imagine, the images require different text colors due to lightness/darkness. Is there a way to achieve…
NetOperator Wibby
  • 1,354
  • 5
  • 22
  • 44
22
votes
6 answers

How to upload an image in parse server using parse api in android

I want to upload an image in parse cloud server in android. But I am unable to do so. I have tried the following code: Drawable drawable = getResources().getDrawable(R.drawable.profilepic) ; Bitmap bitmap =…
pujitav
  • 528
  • 1
  • 5
  • 17
22
votes
2 answers

Python, PIL; Text to Image and fonts

I have an issue with writing text to an image under Python and PIL - I'm able to write text to a png file, though not bold text. Could anyone provide an example of how to achieve this? I thought the easiest solution may be was use a bold-variant of…
Harry Lime
  • 2,167
  • 8
  • 31
  • 53
22
votes
3 answers

Region of Interest opencv python

I am trying to get a region of an image (ROI) using opencv python. The version of opencv used is 2.4.3. However when I try to call the API cv2.SetImageROI it returns this error AttributeError: 'module' object has no attribute 'SetImageROI' Also on…
Ajay Nair
  • 1,827
  • 3
  • 20
  • 33
22
votes
2 answers

How I can get First Frame as Photo from youtube?

How I can get the first Frame in Youtube video as Image ? or I have to use external too to help me to do this task? thanks
user1560992
  • 227
  • 1
  • 2
  • 7
22
votes
4 answers

Figure sizes with pandoc conversion from markdown to docx

I type a report with Rmarkdown in Rstudio. When converting it in html with knitr, there is also a markdown file produced by knitr. I convert this file with pandoc as follows : pandoc -f markdown -t docx input.md -o output.docx The output.docx file…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
22
votes
5 answers

Zoom image to cursor breaks when mouse is moved

This is a followup question to How to zoom to mouse pointer while using my own mousewheel smoothscroll? I am using css transforms to zoom an image to the mouse pointer. I am also using my own smooth scroll algorithm to interpolate and provide…
gordyr
  • 6,078
  • 14
  • 65
  • 123
22
votes
5 answers

How do I programmatically check whether an image (PNG, JPEG, or GIF) is corrupted?

Okay. So I have about 250,000 high resolution images. What I want to do is go through all of them and find ones that are corrupted. If you know what 4scrape is, then you know the nature of the images I. Corrupted, to me, is the image is loaded into…
Joel Verhagen
  • 5,110
  • 4
  • 38
  • 47
22
votes
6 answers

JFileChooser filters

I am putting a JFileChooser in my program, but that only takes images. So I decided to add filters: Code import javax.swing.*; public class fileChooser { public static void main(String[] args) { JPanel panel = new JPanel(); final…
user1832583