image

How does Facebook detect images when adding a link?

When you add a link to your Facebook page, after some processing, Facebook presents you a next/prev button to choose an image linked to the url your are inserting. Obviously, Facebook reads the html-page and displays the images found on the url you insert. Does anyone knows what algorithm Facebook uses to decide what images to show ? ...

C# Tell static GIFs apart from animated ones

I'll keep it short and simple; is there any way of telling static GIF images apart from animated ones? I'm using C#. Thanks ...

How do I load an image from a DB inside a JSF page using managed beans?

I have a database with some images. Could anyone explain me how I could load an image in a JSF page? I already have a managed bean that converts an Image object into a streamcontent. This streamcontent is called from the page in a tag <h:graphicImage>, but when I check the source code of the page, there's no src where the image could be...

storing images in sqlserver using c#

i want to store images of my employees with thier profiles in sql server database. i have following reservations. whether i should compress images or not if yes please provide me sample code or article how should i retrieve images efficiently, i an afraid of asp.net application performance issue. i think with ten thousand employee recor...

How to display a RAW image into a Picturebox by clicking on Button

How can I display a RAW image into a Picturebox by clicking on a Button in a Visual Studio 2008 using C#. RAW images can be read by DCRAW.C file and I don't know how to "connect" dcraw.c + Picturebox + Button... Thx! ...

Using JAI to rotate a grey scale image increases contrast

I am trying to use JAI to perform a rotate task on an image. I can get this working no problem. However, there is severe loss of midtones in the image. The image can be rotated in photoshop without this lack of contrast. Please see the following 3 images stacked next to each other here, to see what I mean; http://imgur.com/SYPhZ.jpg T...

Img tags inside an Anchor in an Flash/AS3 HTMLtextfield with embedFonts = true, and a css file for styles behaves unexpected? Any solution?

when the embedFonts is removed, it works perfectly as expect. Otherwise when an image is clicked, it selects the whole text around it. Alternatively can anyone suggest a method to style dynamic textfields instead of using html? ...

Block upload of executable images (PHP)

It has come to my attention that a user has been trying to create an exploit through avatar image uploads. This was discovered when a user reported to me that they were getting a notice from their Norton Anti-virus saying "HTTP Suspicious Executable Image Download." This warning was referencing the user's avatar image. I don't think t...

Advice on using OCR on an image of a blackboard

I'm trying to get an image of a blackboard readable by OCR. Naturally, most OCR software doesn't like dirty images. What image processing should I try to put the image through to clean the image up? ...

Glueing tile images together using imagemagick's montage command

This seems like it might be a reasonably common question, so I'm going to ask it using as many keywords as I can think of! I have a bunch of (well, nine) tile jpegs, with standard tile filenames. Each jpeg is 220x175 pixels: (top row) tile_1_0_0.jpg tile_1_1_0.jpg tile_1_2_0.jpg (middle row) tile_1_0_1.jpg tile_1_1_1.jpg tile_1_2_1.jpg...

Images not Loading in an Ajax Response

Hi there, I have an AJAX call that returns HTML content with some images. Sometimes they load, but most of the time they don't. Is there an issue I'm not aware of? Thank you. ...

Replace input type=file by an image

Hi, Like a lot of people, I'd like to customize the ugly input type=file, and I know that it can't be done without some hacks and/or javascript. But, the thing is that in my case the upload file buttons are just for uploading images (jpeg|jpg|png|gif), so I was wondering if I could use a "clickable" image which would act exactly as an in...

Why Do Resized Images in Firefox Get A Black Line Under Them?

If you take the following image: http://ecx.images-amazon.com/images/I/41uxky7oT8L._SL160_.jpg place it in an html file with an IMG tag, then resize it to width 160 but do not set the height setting, and are on Firefox, you will see an ugly black line under the image. For instance: <img src="http://ecx.images-amazon.com/images/I/41u...

JFrame does not refresh after deleting an image

Hi! I'm working for the first time with images in a JFrame, and I have some problems. I succeeded in putting an image on my JFrame, and now i want after 2 seconds to remove my image from the JFrame. But after 2 seconds, the image does not disappear, unless I resize the frame or i minimize and after that maximize the frame. Help me if you...

Vetical and Horizontally Align an image in a box

The problem: I have a set width and height image Lets say height:160px; width:200px; with an image in each box. The image can vary in size but I need a solution that will always center the image vertically and horizontally within the box no matter what it's size. Horizontal doesn't seem to be a problem by using margin: 0 auto but ver...

Image.Location variant for WPF?

Hi All I'm a noob when it comes to WPF; In win forms I can do this: public void blah() { using( var o = new OpenFileDialog()) { if(o.ShowDialog() == DialogResult.OK) { PictureBox p = new PictureBox(); p.ImageLocation = o.FileName; p.AutoSize = SizeMode.AutoSize; ...

BlackBerry - How to resize and store image?

I need to scale image to small and store that image in to blackberry device (as a small image)? ...

jQuery accordion - different image for active sections

Hi, I'm using Ryan Stemkoski's "Stupid Simple Jquery Accordion Menu" which is available here: stemkoski.com/stupid-simple-jquery-accordion-menu/ Here is the javascript $(document).ready(function() { //ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING) $('.accordionButton').click(function() { //REMOVE THE ON CLASS...

C# Creating thumbnail (low quality and big size problem)

public void CreateThumbnail(Image img1, Photo photo, string targetDirectoryThumbs) { int newWidth = 700; int newHeight = 700; double ratio = 0; if (img1.Width > img1.Height) { ratio = img1.Width / (double)img1.Height; newHeight = (int)(ne...

Image MouseDown event not firing

I have a problem on one of my user’s PC’s where she cannot click on an image (well, she can click on it, but nothing happens). The image has the following XAML: <Image Source="./Images/flag.jpg" Name="image1" Stretch="Uniform" Height="40" HorizontalAlignment="Right" VerticalAlignment="Top" ...