image

Trying to change image using int

Hi, I have this code: - (IBAction)next { static int index = 0; // <-- here index++; // Set imageCount to as many images as are available int imageCount=16; if (index<=imageCount) { NSString* imageName=[NSString stringWithFormat:@"img%i", index]; [picture setImage: [UIImage imageNamed: imageName]]...

memory_limit=80M. what is the maximum image size for imagecreateformjpeg() ?

i have a webhosting that gives maximum memory_limit of 80M (i.e. ini_set("memory_limit","80M");). I'm using photo upload that uses the function imagecreatefromjpeg(); When i upload large images it gives the error "Fatal error: Allowed memory size of 83886080 bytes exhausted" What maximum size (in bytes) for the image i can restrict to th...

Opacity in images in WPF.

hi please can you help me - i need to detect transparent pixels - thanks in advance. i use wpf and class image. ...

Is it acceptable to leave image resizing up to the client (browser)

Browsers can resize images based on the attributes you specify. However I imagine most resizing is done server side, preferably prior to the request. With the speed of current CPUs and for the sake of simplicity and possibly bandwidth saving, is it ever acceptable to leave image resizing to the browser? ...

Background image technique

Is there any tehnical term for the full-image centered technique? Example: topgear.com, http://safe.tumblr.com/theme/preview/979, and many others which I don't recall. ...

Is it possible to detect duplicate image files?

I have over 10K files for products, the problem is is that many of the images are duplicates. If there is no image, there is a standard image that says 'no image'. How can I detect if the image is this standard 'no image' image file? Update The image is a different name, but it is exactly the same image otherwise. People are saying H...

jQuery scrollable images

Hey guys, Can anyone point me to a jQuery plugin / script that can do what they do with the images here: http://alignednyc.com/listings?cmd=details&amp;id= cheers, Mike ...

Is it possible to upload Vignette files directly, without using the web interface?

In the project I'm working on, we have web resource files (e.g. JS, CSS, images, etc) stored in Vignette. As a web developer I find this cumbersome to work with, since I frequently update these files, and since each upload of a file requires several clicks and waiting for up to 5 seconds on each click. It would be awesome if I could in...

Clustering Photos in R?

I have a kind of general R question here: Usually with digicams we tend to click a lot of immages which may be repetitive and can waste online space while sharing on Picassa or is an overhead when trying to delete some unwanted images. Is it possible to cluster photos using R? I mean there are some clustering abilities in Matlab for ...

How to compare Image objects with C# .NET?

Can we compare two Image objects with C#? For example, check whether they are equal, or even better check how similar are their pixels? if possible, how? ...

How to rotate an image using client side solution

I am wondering if there is any way to dynamically rotate an image or invert an image using a client side solution? I don't care if it is plain old javascript, jquery plugin, css. I just wondered if there was some way to do this dynamically on the client side rather than having to write server side code to do for each image which I can do...

file location to System.IO.Stream

Hi Guys, I have this method public void SetSource(Stream streamSource); which sets the source of BitmapSource, is there a way to convert my URI or my image file location and pass it as a stream? (another issue): Uri uri = new Uri("../images/MyImage.png", UriKind.Relative); BitmapImage btmp1 = new BitmapImage(uri); ...

How to overlap one image over another?

in my application I am displaying thumbnails of user album's images.What I want to do is to display a delete image button over the right corner of the album image.When user clicks on the delete image it will pass the image id and delete the image info from database.My problem is how to overlap delete image on the album image? delete imag...

Displaying large png image on S40 J2ME

I want to display large png image on nokia S40 phone. Because heap size is very limited I can not load image using Image's createImage method. What can I do? Maybe I should re-implement png decoder, to decode portions of png dynamically, and display each time the needed portion? ...

Loading a file to a Bitmap but leaving the original file intact.

How to do this in C#? If I use Bitmap.FromFile(), the original file is locked. If I use Bitmap.FromStream(), the original file is not locked, but the documentation says "You must keep the stream open for the lifetime of the Image." This probably means that the file is still linked to the image object, (for example, perhaps if the file ...

iPhone images still stored in memory?

So I have several viewControllers, each creates images using "imageWithContentsOfFile" in order to conserve memory and then sets objects to nil and releases them in the dealloc method. There are no memory leaks. The problem is memory still builds up when switching views. So for example I'll be in view1 and it'll be using 8MB of memory an...

How to manage Images and Thumbnails ?

I wanna know how photos are managed on websites. Ex: A user uploads a Photo.. say which is 1024 * 768.. I have differnt size thumb nails on the website. 60 * 60 30 * 30 120 * 90 240 * 180 Since all the above images are not of the same aspec ratio. which is the best way to resize and crop images to suit my needs ? Note: Images wil...

How to stretch background image of a table cell with CSS?

How can I stretch background image of a table cell with CSS? I have Googled without results. When you set background image of a cell and the background size is smaller than the cell, then it will be repeated. How can I force this background to stretch the entire table cell instead? ...

asynchronous image loading and the android canvas

Im currently developing a program that uses a scrollable/zoomable image as the main user interface. It uses a canvas which is manipulated by a matrix to traverse a large area. Instead of loading a super large bitmap into memory, i wanted to employ a tile system to load 256 by 256 squares. My problem is that the app will lag when the ima...

Better quality thumbnails

I have a script that successfully creates thumbnails but they're rendered low quality. Is there something that I can change in the script to make the thumbnails better quality? function createThumbnail($filename) { $final_width_of_image = 200; $path_to_image_directory = 'images/fullsized/'; $path_to_thumbs_directory = 'imag...