image

From AS2 to AS3 loading external images

I'm converting some Actionscript code from AS2 tp AS3, and I've eventually managed to get most of it to work again (it's allmost a totally different language, sharing just a little syntax similarity). One of the last things that still doesn't work, is the code for loading an external image. Perhaps this has changed in AS3 but I really t...

How to use Grails j2d plugin to scale an image

I'm using grails j2d which in turns uses GraphicsBuilder to make a simple service to scale an image. My problem is specifically accessing the downloaded image height and width attributes in order to pass the correct parameters to the scale method. How do I access these attributes inside the transformations closure? Controller{ def sca...

Generate HTML-Map from image

Is there a way of automatically generating a HTML-Map compatible list of coordinates of polygon-like objects (e.g. countries on a map) with very distinctive borders? Example image: Final output: <map id ="ceemap" name="ceemap"> <area shape="poly" coords="149,303,162,301,162,298,171,293,180,299,169,309,159,306,148,306,149,303" hr...

Optimum web folder structure for ~250,000 images

Hello I will have around 200,000 images as part of my website. Each image will be stored 3 times: full size, thumbnail, larger thumbnail. Full size images are around 50Kb to 500Kb. Normal tech: Linux, Apache, MySQL, PHP on a VPS. What is the optimum way to store these for fast retrieval and display via a browser?? Should I store ever...

Display arbitrary size 2d image in opengl

I need to display 2d images in opengl using textures. The image dimensions are not necessarily powers of 2. I thought of creating a larger texture and restricting the display to the part I was using but the image data will be shared with openCV so I don't want to copy data a pixel at a time into a larger texture. EDIT - it turns out tha...

Applying image rounded corners to <li>

Hey, I was using jQuery plugins to create a rounded corner for my < li > but it was not working on alot of browsers and didnt support mouse over, it acted very strange. I am wondering what is the best way to use two images (left corner and right corner) as the left and right side with using < li > Any thoughts? I looked on goog...

Ruthlessly compressing large images for the web

I have a very large background image (about 940x940 pixels) and I'm wondering if anyone has tips for compressing a file this large further than Photoshop can handle? The best compression without serious loss of quality from Photoshop is PNG 8 (250 KB); does anyone know of a way to compress an image down further than this (maybe compress...

modifying JavaScript rollover script

Hi all, I'm trying to implement this JavaScript code on blogspot (which parses XML code, some code works better than others) </head><body> <div class="navbar section" id="navbar"><div class="widget Navbar" id="Navbar1"><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventLi...

How to set DPI information in an image?

I have an application that I want to export high-resolution (or rather, high pixel density?) images for printing - for example, I want images that print at 250 dots per inch (DPI), instead of the default, which I understand to be 72 DPI. I'm using a BufferedImage with a Graphics2D object to draw the image, then ImageIO.write() to save t...

how to clear or replace a cached image

I know there are many ways to prevent image caching (such as via META tags), as well as a few nice tricks to ensure that the current version of an image is shown with every page load (such as image.jpg?x=timestamp), but is there any way to actually clear or replace an image in the browsers cache so that neither of the methods above are n...

Storing a small number of images: blob or fs?

I'm adding some functionality to my site so that users can upload their own profile pictures, so I was wondering about whether to store them in the database as a BLOB, or put them in the file system. I found a question similar to this here: Storing images in DB: Yea or Nay, but the answers given were geared more towards people expecting...

Python - Best library for drawing

So I'm looking for a pretty basic library in python where i can create a window, and then draw lines and basic shapes too it. Nothing too complex, just nice and simple. I figure theres lots of libraries out there that can do this, but I don't know any of them. Can anyone give me some recommendations? Thanks EDIT: Note that there are se...

:hover with <span> elements

Hey, I am working with: #top ul li.corner span.right-corner:hover { background-image:url("images/corner-right-over.gif"); width:4px; height:15px; float:left; } #top ul li.corner span.left-corner:hover { background-image:url("images/corner-left-over.gif"); float:left; width:4px; height:15px; } And I ca...

Image Classification Algorithms Using Java

My goal is to implements different image classification methods to show how they function and the advantages and disadvantages behind such methods. The ones I want to try and implement using Java include; Minimum distance classifier k-nearest neighbour classifier. I was wondering what can be used to accomplish my task that already ex...

Where to find the status of the WPF Image Control?

Hello all, One of the nice feature of the Image control is that we can specified an Uri as the ImageSource and the image is automatically downloaded for us. This is great! However, the control doesn't seem to have a property indicating if the image loading is in progress or not. Is there a property telling us the status (Downloading, D...

C# read a JPEG from file and store as an Image.

How can I read a JPEG on my filesystem and store it as a System.Drawing.Image within my C# code? ...

Localize Images in ASP.NET

A couple of years ago, we had a graphic designer revamp our website. His results looked great, but he unfortunately introduced a new unsupported font by the web browser. At first I was like, "What!?!"... since most of our content is dynamic and there was no real way to pre-make all of the images. There was also the issue of multiple la...

.NET WinForms 2.0: How to have a shared imagelist?

i want have to have a single imageList used by multiple forms in a project. That is to say multiple controls use the same image list. Note: Ideally multiple projects in a single solution will use the same image list - but i don't want to ask too much of Microsoft at once. Ideally multiple projects in multiple solutions will use the same...

Render HTML as an Image

I'm generating a coupon based on dynamic input and a cropped image, and I'm displaying the coupon using ntml and css right now, the problem is, printing this has become an issue because of how backgrounds disappear when printing and other problems, so I think the best solution would be to be able to generate an image based on the html, o...

How to generate a filmstrip image in python from a folder of images?

I would like to do the equivalent off this (ruby code) in python for a Django project I am working on. I want to make a filmstrip image of X number of images in a folder. ...