image

Changing image width when sending via header in php.

I have this piece of code that calls a random image and sends it to another page. That page calls this script via an image link. What I am trying to figure out is how to make it specify an image width when the image is past my max width. I got this far then got completely lost. <?php $folder = ''; $exts = 'jpg jpeg png gif'...

Generating a QR code in rails

Hi Guys. I want to generate QR codes in ruby on rails, to run in the background of my website written in rails. Saw this http://code.google.com/p/qrcode-rails/ but cannot work out how I could get this to work for me. Basically in RoR I want to: Pass a generator a string, my unique code, a 20 character length number (e.g. 320329288899988...

[LeavesView Class] NSArray leaking with alot of images

I am using the LeavesView Class available on GitHub by Tom Brow. On the iPad, I have 23 images at 1024x768 ranging from 200-500KB (JPG's). I have compressed the images as much as I could without losing quality. For some reason, when I init with the list of images, the memory drops significantly, and ultimately crashes. Here's some code...

Images Slideshow in Gstreamer

I want to make a GStreamer application which takes a xml file process its content which provides information like image url, its weight and the duration for which it is going to be displayed on the screen. The xml file can be clearly processed in C using libxml. But how can we create a slideshow of the images using the GStreamer librar...

HTML text over images for buttons?

I am designing my first website. I have designed a button image in gimp and saved it as a jpg. I want to use this button for my navigation buttons on the site. Should I make a separate image(jpeg) for each button or is it possible to just use one image and then overlay text on top of the images on the page using HTML? What's the best pra...

Is there a way to output html div to an image using php?

Hi. I have a div on my page which I want to output to a jpeg file. Is this possible using PHP? I know there's the GD library for creating images in PHP but I'm not sure if it can do what I want. Because I also want to put a barcode on the image (I used a jQuery plugin to do this on the html page) . Is this possible (if it's possible ...

Problem with content/type: image/jpeg in IE

let's assume i have some.jpg file. I have a problem when try to do the following $data = file_get_contents(path/to/my/some.jpg); header('Content-Type: image/jpeg'); echo $data; exit(); this doesn't work in IE.It doesn't show the image (tested in version 8) What is the problem? Thanks much UPDATE the script i've written is the p...

cartoonizing real images

does anybody know we can translate from real image captured using cameras be converted to the cartoon space ? Please note that my goal is not to create animations or the likes, but just to translate to "cartoon colors" if possible. will simple requantization to a space where there is less quantization levels work Or some other specifi...

How do you save a jpeg with 4-2-2 and high quality in .net?

When I save a jpg file using bitmap.save, it saves as jpeg 4-1-1 when I specify the encoder and quality, but as 4-2-2 when I don't. I would like to save it as 4-2-2 with a higher quality than the default. Is that possible using bitmap.save? Do I lose anything by saving with 4-1-1? Dim bmp As Bitmap Dim ep As New EncoderParameters(1) Dim...

Convert Images with PHP without using ImageMagick

I need to convert a .JPG, .JPEG, .JPE, .GIF, etc to a .PNG from my PHP webpage without using ImageMagick. Any ideas? Here is the code I found and am trying to work with: <?php header("content-type: image/png"); $original_filename = $_HTTP_POST_FILES['uploaded_file']; imagepng($original_filename,'border/testconvert.png',9); ?> ...

Image analysis in R

Hi R users, I would like to know how I would go about performing image analysis in R. My goal is to convert images into matrices (pixel-wise information), extract/quantify color, estimate the presence of shapes and compare images based on such metrics/patterns. I am aware of relevant packages available in Python (suggestions relevant t...

Technique for setting images path?

Hello Example: <img src="/images/name.jpg" alt="" /> This is what I want: <img src="name.jpg" alt="" /> Upon request for the image, the image will not be found because it is in the "images" directory and not in the root where the HTML file is. Is there a way htaccess or any other technique will be able to recognise the http image...

Convert .BMP to .PNG with PHP

I needed to be able to convert different image formats to the .PNG format. With the help of some others, I was able to make that happen. The only issue is, I also need to be able to convert .BMP files to .PNG without the use of ImageMagick. Here is the code I used for the conversion of other files: <?php $filename = "myfolder/test.jpg...

Rotate an image using Javascript

First off, I am currently using JQuery so JQuery solutions viable. I want to rotate an image by a dynamic X degrees which is calculated every sec. Now I had this working perfectly using this JqueryRotate plugin The image is rotated perfectly every sec. But I am trying something a little more complicated now. I want to rotate 4 tra...

iPhone SDK : How to save a image as a file and POST it back to PHP server ???

Hi all, I'm look for a solution to upload an image file to PHP server I find some tutorial to get a photo from this video and you can get source code here How can I use an IBAction to send the photo to a URL server for example I give it a URL:http://someaddress/photo_upd.php or more specific, HOW TO CONVERT IMAGE I GET FROM CAMER...

Which image hosting is better?

My website is having nearly 50 GB of images and growing gradually. I want to move these images to either S3 or another image hosting server. As an alternative solution, I want to keep these at another domain and want to serve images from there. In terms of performance and monthly server charges, which one will be good - S3 or dedicated...

body less width then inside elements

Hello, I'm trying to have the following markup: body #container #content where body is full width and has a background snapping to the bottom right. where container has a set width of 960px and min-width of 600px, located in the top left corner of the page. where content has a set width of 600px and is also located in the top le...

Is there is any way to find out from where an image is loaded to browser. From server / browser cache/ proxy cache etc

Is there is any way to find out from where an image is loaded to browser. From server / browser cache or proxy cache etc. I am using asp.net MVC ...

Core Animation Image sequence

How would i go about creating an image sequence with core animation. I would like to: add image1 for 1 second then remove image add image2 for 2 seconds then remove image add image1 for 3 seconds then remove CGImageRef image1 = [self getImage1]; CALayer *image1Layer = [CALayer layer]; image1Layer.bounds = CGRectMake(0, 0,...

Android: how to make a clickable map image with each country producing a different action?

Hi there, I need to display a pretty image of a map of Europe, and I want my app to, e.g. bring up a different activity, when the user clicks each country - each country on the map needs to have a different onClickListener (or equivalent). Essentially, I need to be able to call a different function when the user taps on France rather t...