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

make image( not background img) in div repeat?

I'm trying to repeat-y an image that's in a div and no background image but haven't figured how. Could you please point me to a solution? My code looks like this:
Alex
  • 449
  • 1
  • 4
  • 16
21
votes
7 answers

Setting image src attribute not working in Chrome

I want to get the src of one image and set it as another's src when #btn is pressed: jQuery("#btn").live("click", function() { jQuery("#another_div") .children("img") .attr("src", jQuery(this).prev("img").attr("src")); …
user883749
  • 213
  • 1
  • 2
  • 5
21
votes
5 answers

Rails 3 - link_to with image_tag + text

<%= link_to ((image_tag 'image.png'), url_for({:controller => 'controller_name', :action => 'action_name'}), :class => 'quick', :remote => true) %> This part of code will generate me image.png as a link. I would…
user1946705
  • 2,858
  • 14
  • 41
  • 58
21
votes
9 answers

Best PHP Image Crop Class

I'm designing a website and I need to: Upload the image Validate that it's an image (and not, oh I don't know.... a virus :) ) Resize the Image convert to jpg Essentially basic image upload Instead of writing my own I'm trying to find a PHP class…
Tomas Reimers
  • 3,234
  • 4
  • 24
  • 37
21
votes
2 answers

Mysterious padding/margin appears after image in strict mode

I created a new document both with xhtml 1.0 and html 4.01 STRICT just to isolate this. All I have in its body is:
The result is normal except there's a…
John
  • 898
  • 2
  • 9
  • 25
21
votes
7 answers

php how to get web image size in kb?

php how to get web image size in kb? getimagesize only get the width and height. and filesize caused waring. $imgsize=filesize("http://static.adzerk.net/Advertisers/2564.jpg"); echo $imgsize; Warning: filesize() [function.filesize]: stat failed for…
fish man
  • 2,666
  • 21
  • 54
  • 94
21
votes
5 answers

Make Disabled Menu and Toolbar Images look better?

Please see the attached screenshot which illustrates a TToolBar from one of my programs: Notice the last two images of the Toolbar, they are disabled. The way they have been drawn to appear disabled is not very appealing, in fact in the Delphi IDE…
user741875
21
votes
1 answer

Image in Canvas with touch events

Seems simple, and yet I'm having problems with implementation. I want a canvas with image on screen including onTouch events. I have tried ImageView but I was not able to use canvas. I have tried SurfaceView and was able to show image in canvas on…
no9
  • 6,424
  • 25
  • 76
  • 115
21
votes
6 answers

How to replace black background with white when resizing/converting PNG images with transparent backgrounds to JPEG.

I am using a script that lets users upload images. The script resizes and converts the images to JPEG. The problem I have is when a PNG with transparency is uploaded, the resulting JPEG image is black where there was transparency. How can I edit the…
Jeff
  • 495
  • 1
  • 5
  • 18
21
votes
6 answers

Java: Filling a BufferedImage with transparent pixels

I have an off-screen BufferedImage, constructed with the type BufferedImage.TYPE_INT_ARGB. It can contain anything, and I'm looking for a way to (fairly efficiently) completely overwrite the image with transparent pixels, resulting in an…
JBenson
  • 293
  • 2
  • 5
  • 13
21
votes
3 answers

Image interpolation mode in Chrome/Safari?

I need to have an image render with nearest-neighbor resizing and not the bicubic way that is currently used. I currently use the following: ms-interpolation-mode: nearest-neighbor; image-rendering: -moz-crisp-edges; This works in IE and Firefox,…
Deniz Zoeteman
  • 9,691
  • 26
  • 70
  • 97
21
votes
2 answers

How to improve image quality?

I am making an OCR which reads ID cards. After getting region of interest by using YOLO, I am giving that cropped region to Tesseract to read it. As those cropped images are very small and blurry, Tesseract is unable to read them. When it can read…
008karan
  • 411
  • 1
  • 3
  • 8
21
votes
6 answers

Show multiple (2,3,4,…) images in the same window in OpenCV

I want to show 2, 3 or more images in the same window. My problem is how to put the second, third image just on the right side (above, left or upper) the main image. I want to create something like this, using OpenCV. --------------- | | …
Jorge Vega Sánchez
  • 7,430
  • 14
  • 55
  • 77
21
votes
4 answers

Reading image file (file storage object) using OpenCV

I am sending an image by curl to flask server, i am using this curl command curl -F "file=@image.jpg" http://localhost:8000/home and I am trying to read the file using OpenCV on the server side. On the server side I handle the image by this…
AKSHAYAA VAIDYANATHAN
  • 2,715
  • 7
  • 30
  • 51
21
votes
4 answers

Uploading PIL image object to Amazon s3 python

I want to get an image from the web and upload it to Amazon s3. While doing so, I would like to check the image dimensions. I have the following code in Python 3: from PIL import Image import requests # Get response response = requests.get(url,…
john
  • 395
  • 2
  • 4
  • 13
1 2 3
99
100