image

How do I preload a dynamic asp:Image in a datalist?

Currently I have this line of code in a datalist in a usercontrol: <asp:Image ID="Image1" runat="server" imageurl='<%# "~/Thumbnail.ashx?image=" + Utilities.ToURLEncoding("~\\Files" + DataBinder.Eval(Container.DataItem, "file_path")) %>' /> As you can see, it calls Thumbnail.ashx, which generates a thumbnail image given the original i...

Javascript image scroller not working with DOCTYPE

Hi there guys. I've been searching the net hard for some javascript code that allows me to automatically scroll images non-stop horizontally on a webpage. After a long time searching, I finally came across something that was close enough. I then customised it as much as possible to make it do exactly what I wanted it to do. This testi...

Current image scroller replacement with JavaScript library

I am currently using javascript to implement a javascript scroller on my webpage. However, this is not compatible with any DOCTYPEs and instead displays a stationary picture. I was wondering if any one had any idea how I would implement this using jQuery, Mootools or any other such library. The sites are detailed below with and without a...

Ghostscript: Converting PDFs to images with auto-color/b&w detection?

I'm using GhostScript to convert PDF files into images for printing. Right now my method is to convert the PDF file to tiffg4 at 600dpi and then send those to the printer. I need to find a way to detect if the PDF has color pages or not and convert those color pages to something like PNG16m while the B&W pages get converted to tiffg4. ...

change images using jQuery?

I'm trying to make an image change depending on the list-item you hover on. I have a container containing an ul. I have three list-items (a small horizontal navigation). The list items are sitting on the bottom of the container which leaves an empty space on top of the li's. I want the empty space above the li's to change images dependi...

Out Of Memory exception on System.Drawing.Image.FromFile()

Hi there, I have an image uploader and cropper which creates thumbnails and I occasionally get an Out Of Memory exception on the following line: Dim bm As Bitmap = System.Drawing.Image.FromFile(imageFile) The occurance of the error is tiny and very rare, but I always like to know what might be causing it. The imageFile variable is ju...

Getting list of pixel values from PIL

Guys, I'm looking for a bit of assistance. I'm a newbie programmer and one of the problems I'm having at the minute is trying to convert a black & white .jpg image into a list which I can then modulate into an audio signal. This is part of a lager project to create a python SSTV program. I have imported the PIL module and am trying to c...

How to use C# to capture a image of a specific url?

How to use C# to capture a image of a specific url? I want to use C# to automatically capture a image of a webpage based on a specific url. For example, I have a page contains a txtUrl.Text = "http://www.some.com/index.aspx" , then I click a button, how can I capture a image of that Url? ...

How do I programatically save an image from a URL?

How do I progromatically save an image from a URL? I am using C# and need to be able grab images from a URL and store them locally. ...and no, I am not stealing :) ...

How Do You Save An Image Out of a SQL Database Into the File System Using only SQL?

Similar to this question only the other way of flow. http://stackoverflow.com/questions/416881/insert-picture-into-sql-server-2005-image-field-using-only-sql I need to be able to save a image field out into the file system and be able to name the file with only using SQL. I don't want to use TEXTCOPY either because I need to use the c...

Resizing and saving an image in WinMobile and .NET CF throws OutOfMemoryException

I have a WinMobile app which allows the user the snap a photo with the camera, and then use for for various things. The photo can be snapped at 1600x1200, 800x600 or 640x480, but it must always be resized to 400px for the longest size (the other is proportional of course). Here's the code: private void LoadImage(string path) { Image...

Converting an HtmlElement into an Image?

I'm using a WebBrowser control in VB.Net to load a website. At that point, the WebBrowser.Document.Images property returns a collection of HtmlElement that are considered images. What I'm trying to do at this point, is take a particular HtmlElement that represents an image and turn it into a System.Drawing.Image so that I can manipulat...

Looking for Image Slideshow with Preview Images

Checking to see if something like this is available for free or purchase. We would like to be able to set the size of the main image that, when clicked, would open up another window with the high res image in it. The other images in the slideshow would appear below the main image in small thumbnails. Each image could have a descripti...

PHP image GD library not outputting visuals until loop is complete

I am trying to have this function output data and the rescaled image after every loop but it doesn't display anything until it is finished looping through the complete array. I am assuming that this has something to do with the PHP image functions but is there a workaround? function resize_images($images_l){ echo "Resizing Images<br>";...

Stretch image as background

I need image to stretch as background of page. It doesn't matter if page will not scale well, what ever screen resolution may be, whole image has to be visible on screen. I found some solutions on Google, but it either didn't work in Firefox2 or IE6 or both, and I need those two too. I hate when people don't upgrade their software, but I...

What's the best way to send pictures to a browser when they have to be stored as blobs in a database?

I have an existing database containing some pictures in blob fields. For a web application I have to display them. What's the best way to do that, considering stress on the server and maintenance and coding efforts. I can think of the following: "Cache" the blobs to external files and send the files to the browser. Read them from di...

How to create transparent mutable Image in JavaME?

Is there any way of creating transparent mutable images in JavaME (CLDC 1.1, MIDP 2.0) ? public static Image createImage(int width, int height) Creates mutable image but not transparent one (at least not on Nokia phones!) Any other Image.create* creates immutable immages and I don't know any way of creating mutable image from immutab...

Images from Database in Asp.Net MVC

I am trying to display the images in my Asp.Net MVC 1.0 application. I can successfully get the Image (into byte[]) from DB. How can I display it into the <img>? ...

MATLAB: impoint getPosition strange behaviour

I have a question about the values returned by getPosition. Below is my code. It lets the user set 10 points on a given image: figure ,imshow(im); colorArray=['y','m','c','r','g','b','w','k','y','m','c']; pointArray = cell(1,10); % Construct boundary constraint function fcn = makeConstrainToRectFcn('impoint',get(gca,'XLim'),get(gca,'YLi...

Why do my MSI images look corrupted when using WiX?

I'm setting a custom banner and dialog image for my WiX generated MSI. <WixVariable Id="WixUIBannerBmp" Value="./build/msi/InstallerBanner.jpg" /> <WixVariable Id="WixUIDialogBmp" Value="./build/msi/InstallerDialog.jpg" /> For some reason, the image becomes corrupted when built into the MSI. I've added the two images to my question fo...