image

PDF Previewing and viewing

I'm creating a document viewing web application. You log in and it takes you to a screen where you have all your docs listed on the left. I want to make it so that when you roll over a document a preview of the document shows up on the right. From there you can click on it for a full view and printing capabilities. I'm not asking how...

How can I insert an image into a RichTextBox?

Most of the examples I see say to put it on the clipboard and use paste, but that doesn't seem to be very good because it overwrites the clipboard. I did see one method that manually put the image into the RTF using a pinvoke to convert the image to a wmf. Is this the best way? Is there any more straightforward thing I can do? ...

Java 2D and resize

I have some old Java 2D code I want to reuse, but was wondering, is this the best way to get the highest quality images? public static BufferedImage getScaled(BufferedImage imgSrc, Dimension dim) { // This code ensures that all the pixels in the image are loaded. Image scaled = imgSrc.getScaledInstance( dim.width, dim.height, ...

JavaScript drag and drop photo resizer cropper

I have an image of arbitrary size on the page. As an output I need an image of a fixed size, say 90x120px. I would like the user to chose the area of the image by drag-and-dropping the big image behind the 90x120px 'window'. The window would specify the resulting image. Something like this is implemented at facebook image upload. I know...

Automatic image upload and display in a form

How to make the browser upload and display image after the user puts it in the file upload widget? I've got a form where an image should be uploaded and edited by the user on the fly (before they hit submit). Can I do it with Jquery? ...

What Ruby on Rails image library should I use for making vocab cards?

I am making a flashcard builder in Ruby on Rails. What image libraries are recommended for Ruby on Rails? I've used ImageMagick and I've had memory issues on the servers. I hear ImageScience is good but I don't know if I can scale images and draw words on the images (a la lolcats style.) ...

Images management

Im building a site were users can upload images and then "use" them. What I would like some thoughts and ideas about is how to manage temporary uploads. For example, a user uploads an image but decides not to do anything with it but just leaves the site. I have then either uploaded the file to the server or loaded it to the server memo...

Export PDF pages to a series of images in Java

I need to export the pages of an arbitrary PDF document into a series of individual images in jpeg/png/etc format. I need to do this in in Java. Although I do know about iText, PDFBox and various other java pdf libraries, I am hoping for a pointer to some working example, or some how-to. Thanks. ...

Need Better Algorithm for Finding Mapping Between 2 Sets of Points with Minimum Distance

Problem: I have two overlapping 2D shapes, A and B, each shape having the same number of pixels, but differing in shape. Some portion of the shapes are overlapping, and there are some pieces of each that are not overlapping. My goal is to move all the non-overlapping pixels in shape A to the non-overlapping pixels in shape B. Since the n...

Use Java to identify lines in a graph

Hi, I am working on an idea wherein I have to identify lines in a JPG or PNG file. The PNG file contains one graph of a single value - one x,y combination. For example, the graph looks like Y = mx+c. I would like to identify the line in the graph - if I can indentify the position of the pixel in the frame, I believe I can get back the...

New Project : Online Image Search, While Keeping The Images Secure

I'm about to start a project for my other half; the ability to search archaeological images based on certain criteria. The ability to search these criteria is right up my street, a database of images (or their file-paths) associated to some meta-data. The interface would allow searching of the meta-data, then display the matches with t...

iPhone: Positioning to a point on an image from any scale (transform) level

Hello, I have a simple UIImageView with an image that is larger then the display (600x1400). The image starts with Fit to Aspect, so the bounds of the UIImgageView report 320x750, still larger then the display, but that's OK. I know of a point (300, 150) relative to the original dimensions of image (600x1400) that I want to scale and ...

How do I reliably get an image dimensions in .NET without loading the image?

I know how to get the size (x,y) of an image Image.FromFile("cat.jpg").Size BUT that requires loading the image from memory. When I view the images in Windows Explorer it shows me the size. How do I access that size? Is it reliable for all images? Does Windows explorer need to have 'seen' the image first for the size to be availabl...

Images in load balanced environment

I have a load balanced enviorment with over 10 web servers running IIS. All websites are accessing a single file storage that hosts all the pictures. We currently have 200GB of pictures - we store them in directories of 1000 images per directory. Right now all the images are in a single storage device (RAID 10) connected to a single serv...

Win32 BitBlt -- mirror image horizontally

So I've read that StretchBlt can mirror images horizontally and/or vertically by negating the nWidthSrc/Dest and nHeightSrc/Dest parameters. I'd like this functionality without the performance overhead of a StretchBlt. I tried the same technique with BitBlt but it didn't work. Is there any way to mirror an image with something as simple...

WPF Image to Byte[]

Im trying to convert from System.Windows.Controls.Image to byte[] and I didnt know which method from Image class could help in this scenary, by the way I really dont know what should I do, cause in my LINQ model the field appears as Bynary type, I have to change this if I want to save it like a byte[] type? thanks! I found code posted h...

Embedding multipage documents in LaTeX documents

I am writing my dissertation and need to reproduce different short booklets (2-7 pages) that I have used in my studies. Ideally, I would like to have each page of the booklet appear as a page in my dissertation, but enclosed within some frame and using my dissertation's page numbering, etc. I have the booklets in Word format but would...

How can I programatically stitch many images into one?

I am looking for a way to write a script that will take around 400 png images and merge/combine/stitch them into one. I have spent days playing and failing with image processing libraries for Python and C++. If anyone could point me to a specific language or library that you know has this feature that would be awesome. ...

Check for valid image

I'm writing a program that downloads information from the web and part of that is images. At the moment I'm having a problem as the code to download the images is a different part to the code that displays them (under mvc). If a 404 is issued or the image download fails some way the display code pops a message propmt up which i would l...

Displaying images using PHP not working

I'm trying to display an image using a PHP script. Basically so the php script is passed on the full path to the image, and it then displays that image in the browser. I've checked to make sure the image exists, it is being read correctly, etc, however in the browser i just see the broken image box (e.g the small red cross in IE) if I go...