image

Using SQL Server as Image store

Is SQL Server 2008 a good option to use as an image store for an e-commerce website? It would be used to store product images of various sizes and angles. A web server would output those images, reading the table by a clustered ID. The total image size would be around 10 GB, but will need to scale. I see a lot of benefits over using the ...

Detecting if two images are visually identical

Sometimes two image files may be different on a file level, but a human would consider them perceptively identical. Given that, now suppose you have a huge database of images, and you wish to know if a human would think some image X is present in the database or not. If all images had a perceptive hash / fingerprint, then one could hash ...

Image.Save(..) throws a GDI+ exception because the memory stream is closed.

Hi folks, i've got some binary data which i want to save as an image. When i try to save the image, it throws an exception if the memory stream used to create the image, was closed before the save. The reason i do this is because i'm dynamically creating images and as such .. i need to use a memory stream. this is the code: [TestMetho...

How to access each byte in a bitmap image

Hi, Say I have a bitmap image, is it possible to iterate through all the individual bytes in the image? If yes, how? ...

Some images do not load under http, but do under https

I've come across an issue where some images on a site load under https but do not load under http. For example if you go to https://www.mydomain.com/myimage.gif, the image appears fine, but if you go to http://www.mydomain.com/myimage.gif the image comes back with a not found error. This happens to only certain images. Other images lo...

HTML Background Images

When I include an image as an <img> tag as well as a background image on a DOM element, the browser sometimes makes two requests for the same image. This also sometimes happens when using the hover pseudo-property. For example: <html> <head> <style> div{ background: transparent url(/img/stuff.png) no-repeat; } div:...

Internet Explorer submit button styling

I'm making a web application and I got the design for it from a sub-contracted design company. The design is pretty nice, I like it, but I've stumbled across one thing I'm not sure how to implement nicely. The thing is - they've redesigned the looks of buttons to match the page style. So now I have two images - button up and button down...

Any good tool or library for recursive convert ANY files to tiff / images?

We have to convert EVERYTHING to images for archiving purpose. DOC, HTML, email, ZIP, PDF, TXT and any document you can read/view on computer. In addition, it must recursive convent on all embed attachment and files in zip. I know ImgMaker only. Is it the best or I can have something better? My boss ask me to search that are there any ...

Switching an image using jQuery

Is there a better, more jQuery-ish way of handling this image substitution? var image = $(obj).children("img"); if ($(image).attr("src") == "Images/TreeCollapse.gif") $(image).attr("src", "Images/TreeExpand.gif"); else $(image).attr("src", "Images/TreeCollapse.gif"); ...

Simple HTML layout engine to convert HTML to an image

I need a tool to automatically convert simple HTML into an image. I will be controlling the HTML input which will consist of simple text formatting tags and possibly image links--I don't need to be able to render arbitrary HTML. Is there a simple way to do this? I've looked at the HTML layout engines like Gecko and Webkit, but frankly ...

Dynamic PDF Image Stamping in ASP.NET

Current project involves a series of PDFs in various sizes. Each PDF has a place for a logo. There are 50 or so possible logos. They are a consistent size, and, regardless of which PDF size, the logo does not need to be resized, just placed. The client currently just has a few PDFs but will be adding more on a regular basis. I am ...

Having problem importing the PIL image library

Hi, i am trying to do something with the PIL Image library in django, but i experience some problems. I do like this: import Image And then I do like this images = map(Image.open, glob.glob(os.path.join(dirpath, '*.thumb.jpg'))) But when i try to run this i get an error and it leeds me to think that its not imported correctly, a...

Get access to ForeignKey objects at parent save in Django

Hi, I am trying to make a combined image of all images added to a modell in django with inline editing and a ForeignKey. Ive got these models (simplified): class Modell(models.Model): title = models.CharField('beskrivelse', max_length=200) slug = models.SlugField() is_public = models.BooleanField('publisert', default=True)...

How to use full-page background image leaving space for binding?

Hi! In Latex how can you make the background image to occupy the whole sheet on every page except a certain stripe on the inner side of each page? I can't figure it out. I have a background image I'd like to be seen in whole on each page after printing/binding. Matyi ...

adding alpha values to bilinear resizing algorithm

So I'm trying to take a bilinear interpolation algorithm for resizing images and add in alpha values as well. I'm using Actionscript 3 to do this, but I don't really think the language is relevant. The code I have below actually works really well, but edges around "erased" regions seem to get darker. Is there an easy way for it to not i...

How can I generate GIF images in .NET?

Is there a .NET library I can use to programmatically generate my own GIF images? At a minimum I'd like to build it pixel-by-pixel. Better would be support for text and shapes. Here's an example of what I'm trying to do. I mocked this up in Photoshop What do you recommend? ...

Background image in "ul" centered... but I'd like it at the top

On this page (http://www.bonniesphere.com/blog/elsewhere/) the "li" items have an image instead of a bullet. But the image is centered vertically, and in multi-line entries it doesn't look good. Can anyone tell me if there is something in the CSS that should be changed? Here's the relative code: .entry ul {list-style-type:none;} .entry...

How do I do high quality scaling of a image?

I'm writing some code to scale a 32 bit RGBA image in C/C++. I have written a few attempts that have been somewhat successful, but they're slow and most importantly the quality of the sized image is not acceptable. I compared the same image scaled by OpenGL (i.e. my video card) and my routine and it's miles apart in quality. I've Google ...

.NET: Replacing ImageMagick with WPF-objects

We've all seen cool WPF demo-applications with rich media. My question is if WPF-objects can replace some basic functionality in ImageMagick. Basic functions like resizing images, cropping and so on. The results from .NET 2.0's System.Graphics-namespace's resizing is just sad (GDI+). Maybe I'm using it wrong, but out of the box it seem...

Preferred library and/or method of converting CMYK to RGB

Each month I get new CMYK and RGB images that shall be used on the web. I had a script using a patched up ImageMagick doing this, but it got deleted. So I need to do it again, but it was hard last time. How do you easily and quickly convert CMYK image files to RGB? ...