image

How to make the thumbnail go to /tmp/thumb/ and keep the original image on /tmp/ with Image Resizer ?

I'm trying to play with image resizer and I got the following code if (is_uploaded_file(@$_FILES['ulimage']['tmp_name'])){ $targetfilename = ImageHelper::treatFilename(uniqid() . "_" . $_FILES['ulimage']['name']); move_uploaded_file($_FILES['ulimage']['tmp_name'], dirname(__FILE__) . "/tmp/" . $_FILES['ulimage']['name']); ...

i image does not work good in utility app on iPhone app

I working on a utility app. When I run the app in simulator clicking i image at the bottom flips the view in a flash. But when I run the app on iPhone device it behaves abnormally. At times it flips the view in just 1 tap. The other times it does not bother to react even after tapping the image 10 times. I tried with other utility app al...

resize image with keeping aspect ratio in java

hello all im trying to resize bufferdImage in memory in java but to keep the aspect ratio of the image im have something like this but this is not good int w = picture.getWidth(); int h = picture.getWidth(); int neww=w; int newh=h; int wfactor = w; in...

How can I crop/scale user images so I can display fixed sized thumbnails without skewing and stretching?

I'm working on allowing users to upload profile pictures for my site. The classic example of what I'm trying to avoid is plentyoffish.com where each users image is skewed and looks very ugly: So, how can I progmatically crop/create standard sized versions of an image without the skewing demonstrated above? ...

Extracting File Extension in PHP (image upload script)

Can anyone tell me what is wrong with this? The file is renamed using a time stamp but the extension doesn't get extracted and placed in the new name. $filenameext = pathinfo($filename, PATHINFO_EXTENSION); $today = getdate(); $uniqueStr = $today[year]; $uniqueStr .= $today[mon]; $uniqueStr .= $today[wday]; $uni...

What's the easiest frame by frame animation technique in the iPhone sdk?

Hi, i've been developing for the iphone platform for about 3 weeks now, and I'm trying to set up a frame by frame animation with 16 1000x1000 png images (with transparency) and plan on animating with around 100 later, so first I tried using imageNamed to animate all the images like this -(IBAction)startClick1:(id)sender { clou...

PHP's imagejpeg function isn't outputting an image

I'm using PHPs imagecreatefromjpeg to load a jpeg from disk and imagejpeg to output that image to the browser. For some reason though, this function is only outputting the image when the server is running on a Windows development box. On our Linux server, its not outputting any data (ie. Content-Length: 0, nothing is displayed). Are t...

How can I load an image file into a blob in SQLite using Perl?

Could someone please give me a Perl example on how to load an image file into a blob in SQLite? ...

How do I take a DIB and convert it to a tif using libtiff

I am trying to read in a scanned image and compress it from a DIB in memory into a TIF file. I am using the libtiff library and have found a couple examples online but none of them really do as I need them to. I need to take the image from the DIB and turn it into a B&W image. Here is the code I have modified from an online example. It ...

How can I get an image out of the clipboard without losing the alpha channel in .NET?

I'm trying to save a copied image from the clipboard but it's losing its alpha channel: Image clipboardImage = Clipboard.GetImage(); string imagePath = Path.GetTempFileName(); clipboardImage.Save(imagePath); If I copy a 32bit image from PhotoShop or IE/Firefox/Chrome and run the above code, the output loses its alpha channel, instead ...

What is image hashing used for?

I hear this term sometimes and am wondering what it is used for? ...

clipboard image directly save to disk somehow on a local or iis

The user would have to press Alt prtScr to save the image to clipboard, then maybe open word (Ctrl V)and get an path to save it to from the submit form page and save the document? or is it possable to save the clipboard image directly to disk somehow on a local or iis? that the database can record the path. remember What I need. A bug s...

sending byte[] ( more than 20 KB) throught wcf to silverlight

i am sending byte[] (image) through wcf to silverlight, and from silverlight to wcf, everything works well as long as the byte[] (image) is less than 20KB, but when it's bigger, it doesn't work when i try to save the image uploaded in silverlight and send it to wcf to save it in the DB i receive: The remote server returned an error: Not...

User defined functions in MATLAB

I need to write a function to imread an image and convert it to grayscale. Is this correct: function trial() O = imread('m1.png'); G = rgb2gray(O); imwrite(G,'s','jpg'); end or is there a better way to write it? ...

LocalReport Render Fails with Images from Nikon Coolpix 5600

i have a RDLC with a embedded Image taken with a Nikon Coolpix 5600 that raises the following error when i call the Render function. example image: http://img140.imageshack.us/img140/4906/dscn1559u.jpg does somebody know what`s wrong with that image? tia The Error: [ArgumentOutOfRangeException: Nicht negative Zahl erforderlich. ...

How do you crop an image in Expression Blend?

I know this is leaning more in the direction of a designer question, but as I am faced with developing something which requires me to crop an image, I thought I would give the question a shot. This seems like a ridiculous question to ask, but I've look all over the IDE (Expression Blend 2) to try and find a way to crop my image, but I c...

how do you get the rails image path when you don't want to use an image tag

I'm using slimbox2 with rails. To make it work you include some markup as follows: <a href="resources/images/weight1.jpg" rel="lightbox-a" title="Beautiful, isn't it?">a</a> <a href="resources/images/example.jpg" rel="lightbox-a" title="Beautiful, isn't it?">a</a> So I'm wondering, how do you grab the location of the image to place ...

How to pass parameters from C# to MATLAB?

I want to pass an image file name as a parameter from C# to MATLAB. Here's what I have so far: MATLAB code function out = trial(im) O = imread(im); G = rgb2gray(O); imwrite(G,'output','jpeg'); out = G; C# code private void btn_Browse_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); if (openFileDialog...

How to retrieve an Image from MS SQL Server to bind in Gridview ASP.NET by using LINQ to SQL?

I have a binary file which stores in the customerPicture column that has Image as a datatype in the CUSTOMERs table. I have saved an image by using this line of code in LINQ to SQL. Dim db = new MyCompanyDataContext Dim newCus = new CUSTOMERs Dim filebyte As Byte() = fileUploader.FileBytes Dim fileBinary As New System.Data.Linq.Binary(...

Image browser caching. Flex

Hello I load the same image in Flex from different places - and the image always load from server again and again. Is there any way to load image from browser cache? Thanks Vladimir ...