image-manipulation

Creating thumbnails PHP problem

I have this source code where I got it from net tutsplus. I have configured it and made it work in one PHP file. It does work by transferring the original image, but it does not generate to the thumbnails folder. <?php $final_width_of_image = 100; $path_to_image_directory = "../../img/events/" . urldecode($_GET['name']) . "/"; $path_to...

On-the-fly thumbnails PHP

I came up with this: <?php $dir = $_GET['dir']; header('Content-type: image/jpeg'); $create = imagecreatetruecolor(150, 150); $img = imagecreatefromjpeg($dir); imagecopyresampled($create, $img, 0, 0, 0, 0, 150, 150, 150, 150); imagejpeg($create, null, 100); ?> It works by accessing: http://domain.com/image.php?dir=thisi...

How should images be stored when multiple sizes are needed?

What is the best way to store images? Currently when an image is uploaded I resize it to 3 different sizes (a thumbnail, a normal size, and a large size). I save in a database a description of the image, the format, and use the id number from the database as the image name. Each size image has its own directory. Should I be storing the ...

How can I render a transparent gradient with RMagick?

Want to use RMagick to create a PNG image of a gradient that goes from rgba(0,0,0,0.3) to rgba(0,0,0,0.7). Is this possible? ...

Why are transparent pixels showing up black in my image?

I am saving an image bytes array as a thumbnail. The problem is that the transparent background color is black in my image. Below is my code: MemoryStream memoryStream = new MemoryStream(pbytImageByteArray); System.Drawing.Image imgImageSource = System.Drawing.Image.FromStream(memoryStream); double dblOrgnWidth = imgImageSource.Width...

AS3 determine differnce between animated and not-animated gif?

Is there a way in AS3 to determine the difference between animated and not-animated gif? ...

image slideshow example in android?

dear friends, i want to create image slideshow in android. i have many images in android gridview now i want to open manual slideshow if any image is clicked so that i could view it by moving finger left or right next and previous images like android built in gallery. any one guide me how to achieve this? any help would be appriciat...

SVG to JPG / PNG

Hi, is there any working module to convert a SVG image into a pixel format like JPEG or PNG? Thx Jan ...

How to handle null return from custom HttpHandler in asp.net?

I'm using a custom ashx HttpHandler to retrieve gif images from a database and show it on a website - when the image exists, it works great. However, there are cases when the image will not exist, and I'd like to have the html table holding the image to become invisible so the "image not found" icon is not shown. But since the HttpHan...

Difficulty trying to stream an image in a windows mobile API without invoking the inbuilt camera API

Hi I am working on trying to create an API on Asus Windows Mobile 6 phone that can capture an image/video with some visual cues/feedback(such as a box drawn in the middle) while the user is capturing the image/video. While it is possible to invoke the inbuilt camera capture application of the mobile phone, but it is difficult to play a...

Image upload and jCrop and codeigniter

Hi There, I am trying to build a system that allows a user to select an image from their own computer, and crop it using the jCrop tool from jQuery. My question is can I show the image the user has selected from their system without uploading it to a system, I dont really want to do two uploads, unless I can do the first upload silent...

Can i re-size an image coming from an external server like flickr?

what im trying to archive is to load some images from external servers flickr, but i want to re-size the image before rendering, i want to know if there is any way to load that external image check the size and if its too big then with some c# code do the resizing and then send it to the client? Thx in advance. ...

How to Use Calculated Color Values with ColorMatrix?

I am changing color values of each pixel in an image based on a calculation. The problem is that this takes over 5 seconds on my machine with a 1000x1333 image and I'm looking for a way to optimize it to be much faster. I think ColorMatrix may be an option, but I'm having a difficult time figure out how I would get a set of pixel RGB va...

Reading Character from Image

I am working on an application which requires matching of numbers from a scanned image file to database entry and update the database with the match result. Say I have image- employee1.jpg. This image will have two two handwritten entries - Employee number and the amount to be paid to the employee. I have to read the employee number f...

opencv image conversion from rgb to hsv

When I run this following code on a sample image ie an rgb image; and then execute it to display the converted hsv image, both appear to be different... can anyone explain why? or can you suggest a solution for this not to happen... coz its the same image afterall Mat img_hsv,img_rgb,red_blob,blue_blob; img_rgb = imread("pic.png",1); cv...

opencv image conversion from rgb to hsv threshold pains

here's my code.... when i execute it... given any arbit image... it always gives result as an entirely black or entirely white image... is there any problem with the iteration? int main(void) { int i=0,j=0,height=0,width=0,step=0,k=0; Mat img_hsv,img_rgb,red_blob,blue_blob; //reading image... rgb format(default)... CV_8U3C img_rg...

Offer the posibility to preview a personalized product

I want to give my client's the possibility to preview their personalized product. In a nutshell, personalization means the user specifies some text and positions the text somewhere on an image of the product. A great example of what I'd like to achieve is this. Select a frame size and then hit Personalize, after you select the occasion ...

Could anyone suggest me some image manipulation techniques to be added to my image viewer??

Hello, I'm trying to develop a small image viewer just as an exercise to sharpen my programming skills. So far , all the features that I could think of adding to it are zooming in and out, inverting the colors of the image and resizing. Could anyone suggest me a few more features?? You are also welcome to suggest anything which has not...

PHP - Resize an image and fill gaps of proportions with a color

I am uploading logos to my system, and they need to fix in a 60x60 pixel box. I have all the code to resize it proportionately, and that's not a problem. My 454x292px image becomes 60x38. The thing is, I need the picture to be 60x60, meaning I want to pad the top and bottom with white each (I can fill the rectangle with the color). The...

iPhone UIGraphicsGetImageFromCurrentImageContext memory leak

My iPhone application downloads image files from a server, stores it into NSTemporaryDirectory() and then loads the image in the UI asynchronously. Code flow is like this: Show view with loading activity indicator and run a image downloader in the background. Once the image is downloaded, it is written to a file. A timer in the loading...