image

Using canvas to grab pixel data from page

Hi canvas experts, If I have a QT video on a page (where QT is a requirement that can't be changed) how can I grab the pixel data of the current frame that is being shown with canvas? I am aware that this is possible with getImage(videoElement, .....) but I am looking for a solution that uses QT. If getting the pixel data is not possib...

Using the Image.point() method in PIL to manipulate pixel data

I am using the Python Imaging Library to colorize a black and white image with a lookup table that defines the color relationships. The lookup table is simply a 256-element list of RGB tuples: >>> len(colors) 256 >>> colors[0] (255, 237, 237) >>> colors[127] (50, 196, 33) >>> My first version used the getpixel() and putpixel() met...

How can we specify src attribute of img tag in CSS?

Is it possible to set the src attribute value in CSS. At present what i am doing is:- <img src="pathTo/myImage.jpg"/> and i want it to be something like this <img class="myClass" /> also, i don't want to use the background or background-image: property. ...

Drawing Hebrew text to and image using Image module (python)

This is an issue I already asked about and several got answers but the problem remained. when I try to write in hebrew to an image using Image module I get instead of the hebrew lettring some other (ascii??) lettering. if I convert to unicode or ascii I get an error that it doesn't support. I got here a reference to a code that does what...

how Install the FreeType dev files

I asked a python questinom, got this answer: Sounds like PIL was built without FreeType support. Install the FreeType dev files and rebuild PIL again. since I didn't find a way to reply to messages in this forum, I am raising another question. how to do what i was answered to do? -Install the FreeType dev files ? thanks ...

How to receive uploaded file from the inlined form in django?

I'm trying to create a "cool" image uploading interface in django admin panel. The problem is that I'm using inline interface for uploading image instances, but I'm using jQuery Ajax form to upload images, so there were another form I need to create for uploading. And now django view function can't receive request.FILES from this form, b...

OpenID. How create special link

I'm trying to make OpenID authentication on the site, but I do not form, and links. Example: there But a question .. how do I make such links for services such as google, yahoo, aol, twitter, facebook and others? Understand?) Sorry for bad english.. ...

jQuery Image/Hover Preview Causing Choppy Behavior in IE7

Hi everyone, I seem to be having some problems using jQuery to create a simple zoom in IE. In Firefox all is well, but IE is being reported as choppy by most users. I've disabled the code in IE (using jQuery.browser.msie), but would love anyone's help if possible. My jquery source code is below (ignore the upport function). this...

Is it possible to click a link through an image on top that link?

I have a transparent PNG sitting in a DIV on top of a list of links and I would like to know if there is any way to allow a user to click on any of those links currently sitting behind the image with jQuery? The image is large enough that it is covering the DIV below it at all times. <div id="links"><a href="#">Link</a></div> <div i...

Table View Multiple Images With ScrollView

Hi!! Im having a big problem. Im trying that when in click a "word" from tableView send me to a secondView an here i wanna see a image, but i wanna see differents images, if you CLICK BANANA i wanna SEE IMAGE BANANA, etc. and in the secondView I wanna make scroll. The 1 CASE lets me see just one image and the secondView has the command ...

How can I catch server json response while uploading image using Ajax?

I have a form which is loaded via jQuery from the external template file: $('#imguploadform').html('&nbsp;').load('{% url upload_form %}'); In template it looks like this: <img src="{{ MEDIA_URL }}img/misc/upload.png" alt="Illustration" title="myimage" /> <form id="uploadForm" enctype="multipart/form-data" method="post" action="uploa...

How can I load a generated Bitmap into a PictureBox?

There seem to be many picturebox questions out there, but I haven't found any that deal with changing the contents of a picturebox to a bitmap that was not simply loaded from file. My application takes an array of bytes and generates a bitmap from them. I really want to avoid writing to a file as an intermediate processing step. Becaus...

NSImage acting weird

Why is this code setting artistImage to an image with 0 width and 0 height? NSURL *artistImageURL = [NSURL URLWithString:@"http://userserve-ak.last.fm/serve/252/8581581.jpg"]; NSImage *artistImage = [[NSImage alloc] initWithContentsOfURL:artistImageURL]; ...

problem with imagecreatefromstring function

I am trying to convert a string to an image using the "imagecreatefromstring" function (I've attached the code below). It works for most images, but when I try to convert larger images, a small portion of the image does not get converted (the lower part of the image is just grey) my code is (take it from php.net example) : ...

C++ Change image based on a click (Visual Studio C++)

In visual studio, when making a C++ windows application form. I want a picture to change when I click on it. So when I double click the picture and it brings up the click action script, what script do I use..... Similiar to int temp = System::Int32::Parse(label1->Text); temp++; label1->Text = temp.ToString(); Which just increme...

PHP - Create simple animated GIF from two JPEG images?

Hi, Does anyone know if it's possible to generate an animated GIF from two different JPEG files, displaying one image for x seconds then the other, and so on..? Any advice appreciated. Thanks. ...

Why doesn't Firefox redownload images already on a page?

Hello, i just read this article : https://developer.mozilla.org/en/HTTP_Caching_FAQ There's a firefox behavior (and some other browsers i guess) i'd like to understand : if i take any webpage and try to insert the same image multiple times in javascript, the image is only downloaded ONCE even if i specifiy all needed headers to say "do...

install ImageUtils python

I am trying to install ImageUtils, I found the package but it doesn't have an installer with it. what is the procedure? ...

Any way to easily show a very large image in a Java Applet (using lesser parts)?

Hi, I need the functionality to show large images on a Java Applet without increasing the default heap space. I'm getting the "Out of memory" exception when reading the large image using ImageIO.read() into a BufferedImage (what was expected to happen). To solve this issue, the first thing that comes to mind is to divide the large imag...

Check if a file is an image

Hello. I am using JAI and create a file with: PlanarImage img = JAI.create("fileload", myFilename); I check before that line if the file exists. But how could I check if the file is a .bmp or a .tiff or an image file? Does anyone know? ...