image

Three20, different images for portrait and landscape orientation possible?

I am using three20 to present a photo essay of a story I made after the February earthquake in Chile. I would like the app to display portrait type images when iPad device is in portrait orientation and landscape type images when iPad device is in landscape orientation. So there would be two versions of every image, one cropped for portr...

iPhone: how to send image data to server using JSON?

Hi, I am newbie iphone developer, I am using JSON to send and retrieve data from server. But I used to work with text between iPhone and server. Now I would like to send image data from iPhone to server and vice versa, retrieve image data from server database to iphone. Can anyone show me how I can accomplish this? Thanks ...

Image scaling by CSS: is there a webkit alternative for -moz-crisp-edges?

I have an image that is 100x100 in pixels. I want to show it twice the size, so 200x200 and I want to do it by CSS and (explicitly) not by the server. Since a few years, images get anti-aliased by all browsers instead of doing a by-pixel scale. Mozilla allows to specify the algorithm: image-rendering: -moz-crisp-edges; So does IE: -ms-...

Resize a canvas image on click and center that with javascript

How is it possible to zoom a photo contained in a <canvas> tag? In particular I'd like to zoom in on the photo at the point the user clicked. The zoom is not difficult to do: img.width = img.width + 100; img.height = img.height + 100; ctx.drawImage(img,0,0,img.width,img.height); The problem is that I would also like to center the zoo...

the dreaded "Warning: imagecreatefromjpeg() : '/tmp/filename' is not a valid JPEG file in /phpfile.php on line xxx"

Hi all, I've been getting this warning when some people upload images to our site : Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/sherifo/private/includes/snapsutils.php on line 220 Warning: imagecreatefromjpeg() [function.imagecreatefromjpe...

Jquery sliders behaves differently than example from documentation.

I copy pasted the code from http://jqueryui.com/demos/slider/range.html for local testing. And what I see is different from what the url shows. When I click the slider "big dots" (used to change the value) the dot image gets a dotted border around it and it doesn't go away after I release the click until I focus another element on the pa...

Converting flat sequence to 2d sequence in python

I have a piece of code that will return a flat sequence for every pixel in a image. import Image im = Image.open("test.png") print("Picture size is ", width, height) data = list(im.getdata()) for n in range(width*height): if data[n] == (0, 0, 0): print(data[n], n) This codes returns something like this ((0, 0, 0), 1250) (...

How would you position these images?

http://elektrikhost.com/ You see the penguins thats over the header on the columns? I'm trying to get them to be over the header and list. I'm wondering what would you do? use position absolute, or relative? I'm stuck. HTML: <section class="starter"> <img src="../images/plan-icon.png" width="62" height="73" alt="Plan Icon"> <h2>St...

Scrolling performance and UIImage drawing

I'm building a UITableView similar to iPod.app's album browsing view: http://cl.ly/2mWo I'm importing all the artists and album artworks from the iPod library on first launch. Saving everything to CoreData and getting it back into an NSFetchedResultsController. I'm reusing cell identifiers and in my cellForRowAtIndexPath: method I have ...

Scanned Image to Readable Text

I am wondering is there a way to get scanned image with text to be converted to readable text by writing code for it? Is that possible? ...

Image Pathing and Absolute Paths?

I'm developing a website in ASP .NET MVC 2 using C#. I have a partial view, Header.ascx. In there I have an image for my website, MainImage.png. When I use one of the primary Views I've created, the image shows up fine. For instance, I hit the Index ActionResult of my News Controller. (site.com/News) However, when I dig deeper, I se...

Anyway to allow images in gmail email

I am sending a newsletter to users. By default the images don't display in GMail. Is there any way that if attach the image with email then they can see the image by default in gmail or any other way? ...

want to add image left corner of div

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> <style type="text/css"> .connection...

can i configure a product like this

Hi All, I want to configure product like this,when a customer puts his order he can upload the image that he wanna see over his product Thanks in Advance ...

Text on image not appearing, in preview handler vs2005 .net2

hi i am trying to show image of my file in previwew pane i am able to display the image of my file but i am stuck in the part where i need write some text on the image before adding it to preview pane. // create an image object, using the filename we just retrieved String strImageFile = file.FullName.Substring(0, file.FullNa...

Rails Load a icon which isn't saved in the images folder

Hi, I wand to give a preview of the just uploaded pictures. These pictures are not saved in the public folder, as they are not public... How can I do this? Thanks Markus ...

Brightness and Contrast for a canvas image with javascript

I have an image in a tag var img = new Image(); ctx.drawImage(img,0,0,img.width,img.height); ecc... How is possible to change the Brightness and Contrast of this image with javascript? Tnx ...

How can I see all the images in Sliding Image Gallery plugin in jQuery?

Hello, I want to do the effect presented by Mead Miracle http://www.meadmiracle.com/SlidingGallery.aspx . So I am using this plug-in in jQuery. What I want is to navigate through all the images and not only three. So I want to have all the images shown and do the same effect. Does anyone know if I should change a parameter or is somethin...

How to save a png from javascript variable

I have an image encoded in base64 in a javascript variable : data:image/png;base64, base64 data [EDIT] I need to save that file to disk without asking to the visitor to do a right click [/EDIT] Is it possible ? How ? Thanks in advance Best regards ...

How can I convert a JPEG image to a PNG one with transparent background?

Hi, I have a JPEG format image, with a white background and a black circle. How can I transform this image to a PNG format that the white background will be transparent and the black remains there? I'm a programmer too, and if there are some ideas in C# code I will be very happy. Also I'm looking for a converter, tool, program anythin...