image

Which graphic file formats are supported by browsers?

JPEG, GIF and PNG can be displayed with the img tag and will work in all browsers, the object element can be use for displaying images specifying its MIME type, but what other graphic formats are supported by img or object tag in most broswers without installing plugins? (TIF, SVG, PCX, PICT, etc..) ...

Image Capture in C#

I'm working on a home project that involves comparing images to a database of images (using a quadrant - or so - histogram approach). I wanted to know what my options are in regards to web cams or other image capture devices that: Are easy to work with with the Windows SDK (particularly DirectShow, which I plan to use with C#) Have d...

Fuzzy .png in Flash CS3

PNG images appear "fuzzy" in flash CS3. They are very blocky and appear unanti-aliased (if that is a word) Does anyone have a fix for this? Is there some setting I'm missing? ...

How to Write a "Fake" ListBox

I use ListBox to show Images. However I found if the Listbox contain more than 1000 Image Items, It is really slow if I want to zoom the thumbnails. I asked the qestion in http://stackoverflow.com/questions/181845/in-a-wpf-listbox-with-more-than-1000-image-items-the-zoom-images-become-slow And tried lots of method, however I can't solve ...

Can an ASP.Net MVC controller return an Image?

Can I create a Controller that simply returns an image asset? I would like to route this logic through a controller, whenever a url such as the following is requested: www.mywebsite.com/resource/image/topbanner The controller will look up "topbanner.png" and send that image directly back to the client. I've seen examples of this wher...

Color Coherence Vector in C#

A friend and I are about to embark on creating a machine that performs some image comparison for sorting. I know about histogram comparison and am generally confident that a small grid of histograms per image precalculated and stored in columns in a database table will generally give us pretty good matches on the first pass because we a...

How to perform seam carving on an image using PHP's GD library?

I am working on a project that resizes images using PHP's GD library. I would like to be able to add the option to use seam carving to resize images but don't want to require something like ImageMagick (which can do seam carving with its liquid rescale feature) to accomplish this. Since there are no built-in seam carving functions in GD...

Can I use VBScript to base64 encode a gif?

What I'm trying to do is encode a gif file, to include in an XML document. This is what I have now, but it doesn't seem to work. Function gifToBase64(strGifFilename) On Error Resume Next Dim strBase64 Set inputStream = WScript.CreateObject("ADODB.Stream") inputStream.LoadFromFile strGifFilename strBase64 = inputStream.Text Set inp...

Create a JPEG in PHP w/o creating a file?

Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg to the disk and then reloading it for the S3 request. Is there a way to do this completely in memory, with the image data jpeg formatted, saved in a variable? Thank...

Automatic image format detection in PHP

I am looking for a way to take a user uploaded image that is currently put in a temporary location ex: /tmp/jkhjkh78 and create a php image from it, autodetecting the format. Is there a more clever way to do this than a bunch of try/catching with imagefromjpeg, imagefrompng, etc? ...

Read colors of image with Python (GAE)

How can I read the colors of an image with python using google app engine? Example: I like to build a function to determine the most striking colors of an image to set a harmonic background color for it. ...

Getting XAML of the current screen in silverlight 2

I am trying to send my dynamically created silverlight 2 page/image to a an ASP.net web service to render it as an bitmap image. I can see many examples how to get the XAML using javascript (see here) in version 1 of silverlight but I have a few differences. a) I am using silverlight 2 RC1 b) I have dynamically add controls to the pag...

How do I load and save an image from an SQL Server database using GDI+ and C++?

I need specifically to load a JPG image that was saved as a blob. GDI+ makes it very easy to retrieve images from files but not from databases... ...

Screen Grab with PHP and/or Javascript?

Just wondering if it's possible to screen grab a page you are viewing with a PHP script or javascript? For example, load up a page in an iframe and then save that view as a JPEG? I'm sure it's possible somehow, but are there any known implementations/libraries that help out? ...

Getting file name of file directed by .htaccess?

Hello. I'm making a dynamic image for a forum that doesn't allow dynamic images. I tried using .htacess to redirect all *.png files to image.png... which works perfectly, but from here I can't seem to be able to get the filename of the .png that was requested to generate the content. is there a way to do this? For example... user ...

Getting image metadata in .NET without regards to metadata format

Given a filename, I need to be able to access certain metadata in an image for a (closed source) project I'm currently developing, without regard to how the metadata is stored (that is, Exif, IPTC, or XMP). In particular, I want to access geotagging data. Is there a way of doing this without requiring any third party assemblies or libra...

I need my scaled image to be aliased in C#

This might be an odd question, but when I scale my image in C# I need it to be pixelated and not anti-aliased. Just like in MSpaint when you scale. I hope images anti-alias by default in C#, or else I changed something I didn't want to. I've tried playing around with the Graphics.InterpolationMode but no luck there. I'm using a Bitmap ...

Any free HTML Image Slicer?

I was given one big JPG of the HTML interface. Now I need to break it down into pieces and assemble them with html table. Without a slicer it's pretty arduous and error prone. I do not have photoshop or firework, does anybody know of any free utilities that I can use? ...

img onload doesn't work well in IE7

I have an img tag in my webapp that uses the onload handler to resize the image: <img onLoad="SizeImage(this);" src="foo" > This works fine in Firefox 3, but fails in IE7 because the image object being passed to the SizeImage() function has a width and height of 0 for some reason -- maybe IE calls the function before it finishes loadi...

ImageMagick Reflection

Brief: convert ( -size 585x128 gradient: ) NewImage.png How do I change the above ImageMagick command so it takes the width and height from an existing image? I need it to remain a one line command. Details: I'm trying to programatically create an image reflection using ImageMagick. The effect I am looking for is similar to what ...