image

Upload image via ftp

I want to store filename, filesize, etc. from images already on my server. My idea is to upload images via ftp and then store the data in mysql using php. Is that possible? ...

Simplest way to calculate the width and height of a jpeg image in Python

How can I calculate the width and height of an image in Python? I'm using the "Image" library already if that makes it easier. Thanks. ...

How do I save jpeg images with no compression in Matlab?

Hi All, How do I save jpeg images with no compression in Matlab? I tried targetImageFile = 'skype2.png'; targetImage = imread(targetImageFile); imwrite(targetImage,'output.png','Compression','none',... 'WriteMode','append'); However, I got input: compressionRatio = 1.992735e+000 output: compressionRatio = 2.09085...

NGINX route all requests for images to external server

I would like to route all requests to my nginx server for jpg/png images to another external internet server which actually holds the images. What would the rewrite look like? This is mostly for development so I'm not worried about the overhead of doing this. Then again, perhaps there is none. Both servers are mine so this isn't a reque...

Resize images hosted on Amazon S3 by using PHP

Possible Duplicate: Scaling images stored at S3 Before going to use Amazon S3 service, I want to know clearly as to the process of resizing images hosted on S3. My plan is - I want to move original image to S3, when user requests different sizes of thumbnails, I need to resize this and serve the image? What is the best soluti...

Creating a jpeg file with metadata

I have a Java application that creates a BufferedImage and saves it to disk as a JPEG. I'd really like to add a caption to the image. To prevent the image from getting crowded out by text on the image itself, it'd be great if I could write the caption to the JPEG's metadata. I've been searching all over the place for a solution, but...

Rounded corners on img with border in FF

This isn't really a question, just something I struggled with on my own and thought others might appreciate a solution. If you try to apply a border and rounded border radius to a div containing an image in FireFox, you get rounded div borders with a square image sticking out at the corners--rather unsightly. Solution? Apply a desire...

Background image in view controller result in memory increase + UIColor colorWithPatternImage

I tried 2 different methods of creating a background image for a view controller. I have researched this before and came to the conclusion that for good memory practice you should use this method: NSString *path = [[NSBundle mainBundle] pathForResource:@"controllerBackground" ofType:@"png" inDirectory:@""]; [self.view setBackgroundCol...

Is there an expectable function to find out what type an image is in C# using OpenXML?

I hooked into the question located at "Replace image in word doc using OpenXML". I noticed that there are several ImagePartType types. Is there any easy "built in" way to determine which type a specific image should be other than going by it's extension? The ImagePartType enum is also used in PowerPoint as is alot of the WordProcessingML...

WPF out of memory exception when loading large amount of bitmaps in single instance of app. Is there a limit?

I need to load large amounts of bitmaps into memory for display in a WPF app (using .net 4.0). Where I run into trouble is when I approach around 1,400MB of memory ( I am getting this from the process list in the task manager). This same thing happens whether the app is run on a machine with 4GB of memory or 6GB (and some other configs...

Jquery image point out on mouse over within an images grid

Does anyone know a simple Jquery plugin or other method (always with Jquery) to get the effect to point out an image in a image grid on mouseover? I would have thought a tiny zoom effect or...somenthing else I don't know. Thank you... ...

Why is accessing dimensions of the image so expensive in JavaScript on IE8?

I have to process loads of images. First, I need to check if the size of the image is greater than 50x60 and appropriately increasing the counter of bad images. The problem I have is that the speed of n.width / n.height on Internet Explorer 8 is extremely low. I checked n.offsetWidth, n.clientWidth but they are all the same speed-wise. ...

Eclipse project with ImageIcon

I have an eclipse project with image folder. I need to create an ImageIcon from an image located in this folder but can not figure out how to tell it to look in the folder with out giving exact position on my system which I do not want to do as the project gets moved around to different pc's. Code example ImageIcon ai = new ImageIcon("...

JavaScript filter image color

Hey, I'm looking for a way to take a black and white img element, and using JavaScript, specify an RGB value so that the image becomes that color. Any ideas (aside from libraries)? Also I'm trying to do this with IE only. The reason I'm doing it in IE only is because I'm making a small sidebar gadget. ...

WPF button with image of a circle

I have a coloured circle in a .png, the rest is transparent. I am able to place that image on a button but the rest of the button's style is visible on the transparent are of the image. How can I hide it, in normal, mouse over and pressed mode? ...

ListView scrolling lag in android

Hi, I am having a customized list view in my application, which is showing an image and text. The Image I am getting from URL, using the code below: private static Drawable ImageOperations(Context ctx, String url, String saveFilename) { try { InputStream is = (InputStream) fetch(url); Drawable d = Drawable.c...

Odd entities in generated text (chrome is weird)

Hello! I am working on a school-project with two classmates. Our task is to make a dynamic gallery for web. So we got the whole gallery up and running perfect, except chrome is acting mighty weird about it. We have our pictures uploaded in blob, as well as our thumbnails. We load them from the database through php. <div id="content_righ...

Change a CSS button into a star image?

I want to know how I can change a normal default grey HTML button into an image using CSS. This is the image I want to change into: button.star { background-image: url(img/star.jpg); } This is the image I'm using. It's for favoriting an item. Thanks :) Is this the way to do it? ...

How to display base64 encoded image in HTML if it is located in a separated file?

I have base64 encoded image. If I put it right into html it works: <img src="data:image/png;base64,..."/> But when I put all that base64 content into a separated file, it doesn't: <img src="image.base64.txt"/> I tried changing extension to .png, but it doesn't help. Any ideas? ...

what is the best source to buy pictures for mobile applications

Hi, I am writing a slide-show like application for android phone which I am going to sell. it will target very narrow audience and I do not think I will sell more than 1000 copies of it. I was going to buy pictures for it from microstock agencies like istockphoto but it turned out that they require purchase of "extended license" if you...