image

Displaying an Image from view-model. MVC

Hey guys, My issue is similar to This question but different enough that I feel it warrants a separate thread. So I have the following 'view'; // A load of other calls to Model.Title, Model.Description, Model.DownloadURL // which work fine so no issues with actually ViewModel communication. <fieldset> <div id="projectDiv"> ...

WPF How to center the Image.Source

Hi all, I am developing a custom Image control in WPF .NET 3.5 and Visual Studio 2010. In WinForms the PicutreBox control has the SizeMode property which includes "CenterImage". I want my Image control to have that ability. Is there anyway? Thanks My XAML code: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://sch...

Image serving and storage mechanism

Hi, My website serves multiple images and videos and targeted customers are only from one country. The size of storage is increasing day by day due to so many images and videos. It is becoming difficult to take backup also. I have seen some articles that Akamai and Amazon S3 provide image hosting services. Will this be suitable for my ...

What's the most straightforward way of painting RGBA data into a view on Mac OS X?

Hey guys, Long story short, every 60th of a second I have a relatively small buffer (256x240) of RGBA data (8 bits per component, 4 bytes per pixel) that is refreshed with new data, and I want to display it (I guess inside an NSView, but anything is welcome). What's the most straightforward way to do it? Building a CGImageRef from a CGB...

CSS definitions needed to center a dynamiclly created thumbnail image in a containing square frame

Hi all, I want to create an image gallery.Each image is scald dynamiclly so its biggest dimension will be 100px and the other dimension is scaled so it will preserve the original aspect ratio. (For example if the original image width is 200 and the image height is 400 it will be scaled to w:50px h:100px thumbnail) I want that the each...

How can I set an Image to an Image control in WPF?

I'm trying to do this: imgUser.Source = new Uri(user.Photo); But I'm getting an error that I cannot convert a URI to an ImageSource. Any help? ...

PHP: Code to check image quality/pixelation (not compression rate but real quality)?

I want to know if its possible (and how) to check for real image quality (.jpg) using the GD library. Obviously we need to check for file size, colors, image size, and number of pixels and compare between them. For example if an 1200x600px image has a size of 60kb probably its in bad quality. But if the image is in grey scale, or uses ...

Given a WPF Image control, how can I make it bigger through animation on MouseEnter?

I've done this once before but I have forgotten entirely how to do it. How can I have it so an Image can grow a bit within 3 seconds (so it's smooth) on MouseOver? ...

Python PIL ImageTk.PhotoImage() is giving me a bus error?

So I am running python 2.6 on a macbook pro and trying to write the code in python to display an image from a file in a label on a tkinter gui. The image is called image.png. The program runs without errors when I use this code i = Image.open("image.png") but when I do this code (I add one line): i = Image.open("image.png") photo = ...

calculate distance between two images

please help me calculate the distance between each pixels present in two images thats stored in database in java code ...

Prevent images from downloading with ScrAPI

I need to scrape some websites, and would like to avoid downloading images from the pages I am scraping - I only need the text. I am hoping this will speed up the process. Any ideas on how to manage this? Thanks, Jon ...

content-type failing in firefox when using dynamic images (PHP) in <img src="source.php">

Okay excuse the cryptic subject. I have a system which dynamically fetches image data and does some modification on the fly. Essentially, missing out the unimportant bits, this is my code: $File->Filename = "testimage.jpg"; $File->Open(); $FileData = $File->Read(); header('Content-Type: image/jpeg'); echo $FileData; The only outpu...

MATLAB how to plot x,y on image and save

datafile.txt code x y 23 22.1 33.11 23 110 22 23 11 200 24 111 321 24 222 111 24 10 22.1 10 88.3 99.3 10 110 32 10 121 143 10 190 200 EDITED: On the above file, the first column represent the image code which displayed on screen, and the x and y represent the point where people lo...

Android - how to use a random image, in it's original size, as a background.

I'd like to be able to use an image as my background in a relative layout, without it stretching. I don't want to just enter the images details into an XML file, as I want to use different images, with different sizes. I've tried the following, but it just stretches the images (I know the left, top, right and bottom variables have the w...

How to add images to iphone simulator v4

I've always been able to get images into iphone simulator 3 by the usual methods described on this site (i.e. dragging image into iphone simulator). However, having upgarded to the new xcode 3.2.3, although I can still save images to the simulator, I can't actually see them there when I go to the library on the simulator. Thankfully - ...

jQuery animated image swap

Howdy. It's me again, and It's jQuery again. I have somthing like that: http://misiur.com/small/ When this menu on left is clicked, then I want to change src of this image, or just swap it. However I want to make it animated. Images paths are taken from DB, and stored in "images" array (You can check that with firebug). thanks Update...

How to find the extension of an image from path in PHP?

Hi, Is there any standard function in PHP to find only extension of an image from the corresponding file path? For example ff my image path is like '/testdir/dir2/image.gif' then the function should return 'gif'. Thanks ...

How do I get the coordinates of some text thats part of an image?

I want to cut up the image based on various text markers placed around within it. The font/size of the marker is up to me. I know commercial OCR packages provide this in their APIs but I'm hoping I can code this up myself. Ideally I wouldn't have to go pixel to pixel and compare against an image of the marker text. I'm good with C++/...

How do I allow safely and inexpensively allow images on my site?

I have developed a social networking site for gardeners website, and am interested in giving users the ability to add images to their "tweets". If I allow them to upload images to the actual site, it seems like this will quickly become expensive (this is a side project, not funded by anyone than myself and my own obsessions). Let's say...

Image similarity and k-mean clustering ...

Hi I'm playing a little bit with image similarity. In fact i'm playing with image retrieval system. Ideally i wanna to create some kind of image index that I can query to get similar images. My current thought is to store some kind of ImageDescriptor into index and each descriptor can have different features in it, e.g. k-mean-cluster-...