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

Working example of floating image in reStructured Text

I'm looking for the best way to have an image with text appearing beside it in reStructured Text. I have found several sites purporting to show how it's done but none show an actual functioning example. Several show what appear to be failing…
Ubuntourist
  • 775
  • 11
  • 26
21
votes
3 answers

Remove background of the image using opencv Python

I have two images, one with only background and the other with background + detectable object (in my case its a car). Below are the images I am trying to remove the background such that I only have car in the resulting image. Following is the code…
muazfaiz
  • 4,611
  • 14
  • 50
  • 88
21
votes
4 answers

accessing UIImage properties without loading in memory the image

As you know the iphone guidelines discourage loading uiimages that are greater than 1024x1024. The size of the images that i would have to load varies, and i would like to check the size of the image i am about to load; however using the .size…
koda
  • 741
  • 1
  • 7
  • 18
21
votes
2 answers

Adding space between text and image in Markdown

In Markdown, you add an image as ![myimg](link) Now, I can easily change the size and placement of said image using attributes as ![myimg](link){: height="75px" width="300px" align="left"} How do I also make it so that there is also a (choosable)…
mar tin
  • 9,266
  • 23
  • 72
  • 97
21
votes
3 answers

How to extract R,G,B values with numpy into seperate arrays

Suppose I have a image with some dimension (1920, 1080, 3) , I want to extract out R,G,B values into separate arrays R , G, B . I tried to do it like for i in range(image.shape[0]): for j in range(image.shape[1]): B =…
Sigma
  • 742
  • 2
  • 9
  • 24
21
votes
2 answers

Show image from URL with Xamarin.Forms

I am using this code to show image from an URL .xaml
Kishore Suthar
  • 2,943
  • 4
  • 26
  • 44
21
votes
7 answers

out of memory Image.FromFile

Why is it that I'm getting an out of memory error? Thank you if (File.Exists(photoURI)) { FileStream fs = new FileStream(photoURI, FileMode.Open, FileAccess.Read); Image img = Image.FromStream(fs); fs.Close(); }
xscape
  • 3,318
  • 9
  • 45
  • 86
21
votes
8 answers

android reduce file size for camera captured image to be less than 500 kb

My requirement is to upload camera captured image to the server, but it should be less than 500 KB. In case, if it is greater than 500 KB, it needs to be reduced to the size less than 500 KB (but somewhat closer to it) For this, I am using the…
21
votes
4 answers

How to extract text from image Android app

I am working on a feature for my Android app. I would like to read text from a picture then save that text in a database. Is using OCR the best way? Is there another way? Google suggests in its documentation that NDK should only be used if strictly…
MrAnderson1992
  • 399
  • 1
  • 3
  • 11
21
votes
5 answers

Crop Rectangle returned by minAreaRect OpenCV [Python]

minAreaRect in OpenCV returns a rotated rectangle. How do I crop this part of the image which is inside the rectangle? boxPoints returns the co-ordinates of the corner points of the rotated rectangle so one can access the pixels by looping through…
Abdul Fatir
  • 6,159
  • 5
  • 31
  • 58
21
votes
9 answers

how to save bitmap to android gallery

unfortunately the solutions I've found didn't work on android 5.1.1. I have a bitmap called source. I need to save it directly to my phone's gallery. My manifest contains
Mihail Kudrin
  • 321
  • 1
  • 2
  • 4
21
votes
3 answers

Best way to determine mime type of a file in java?

Curious what the best way is in Java to get the mime-type of a file. It should actually inspect the file because filenames aren't an accurate indicator. Currently I'm using the following which seems to be very hit or miss is = new…
James
  • 15,085
  • 25
  • 83
  • 120
21
votes
1 answer

Easily create an animated glow

I created this image: Using photoshop, but I had to make around 50 layers manually, and then create a gif out of it. Is there any easier way to automatically create an animated glow similar to this?
user5030225
21
votes
2 answers

Difference between sprite and texture?

Can you please explain the difference between texture and sprite? When we zoom in a sprite, it appears blurry because it's basically an image. Is it the same for a texture? I read this comment on the image below online: The background layers are…
user5622430
21
votes
4 answers

Text Overlay Image with Darkened Opacity React Native

I am attempting to overlay a title over an image - with the image darkened with a lower opacity. However, the opacity effect is changing the overlaying text as well - making it dim. Any fix to this? Here is what is looks like: And here is my code…
Robert Tomas G IV
  • 2,315
  • 4
  • 18
  • 41
1 2 3
99
100