Showing posts with label image. Show all posts
Showing posts with label image. Show all posts

Friday, June 8, 2012

Thursday, May 31, 2012

Preloading images with jQuery


I'm looking for a quick and easy way to preload images with JavaScript. I'm using jQuery if that's important.

Android: combining text & image on a Button or ImageButton


I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image.

Friday, May 18, 2012

Thursday, May 17, 2012

PHP custom postcard


i am creating a new feature on my site that allow people to send postcard to friends. in this section they can choose the image they want to send (they already uplaoded the image to their profile -> my pictures section)

Thursday, May 10, 2012

php generate image curly arrow


is it possible to create this image in PHP using GD ? i know i need to use GD and imagecreate, imagecolorallocate, imagedestroy etc... but i have no idea how to do the curve

Tuesday, May 1, 2012

android image button


How can i create a button with no text and an image centered horizontally ? I don't want to use an ImageButton because I want to define a different backgound image

How do I abort image <img> load requests without using window.stop()


I have a very long page that dynamically loads images as users scroll through.

Load 1000 images smartly


I have like 1000 images on the same page. Unfortunately, I can't use sprites on them, as the number of images increases continuously. So you can imagine it sends 1000 HTTP requests, so it takes lots of time for the images to load plus it's not good experience for the visitors.

Monday, April 23, 2012

Sunday, April 22, 2012

Best Practice when Caching files in Android


I currently have my app caching image files in the cache sub-directory for the application. The images are used in a ListView and stored in a HashMap of SoftReferences to Bitmaps .

How to query Android MediaStore Content Provider, avoiding orphaned images?


I'm trying to provide an in-app Activity which displays thumbnails of photos in the device's media store, and allow the user to select one. After the user makes a selection, the application reads the original full-size image and does things with it.

Thursday, April 19, 2012

Is it secure to place uploaded images in a public folder?


I've just had a discussion with my teammate about the location of user uploaded images in an image gallery. I would like a broader insight on the methods we suggest.

Effeciently storing user uploaded images on the file system


Scenario



Users can post an item and include up to 5 images with the post, each image that's uploaded needs to be resampled and resized - a total of 4 extra images are created. Meaning if the user uploads 5 images end up with 25 images total to store.

Monday, April 16, 2012

Is it possible to tile images in a UIScrollView without having to manually create all the tiles?


In the iPhone sample code " PhotoScroller " from WWDC 2010, they show how to do a pretty good mimmic of the Photos app with scrolling, zooming, and paging of images. They also tile the images to show how to display high resolution images and maintain good performance.

Thursday, April 12, 2012

best way to determine if a URL is an image in PHP


Using PHP, given a URL, how can I determine whether it is an image?

Copy Image from Remote Server Over HTTP


I am looking for a simple way to import/copy images from remote server to a local folder using PHP. I have no FTP access to the server, but all remote images can be accessed via HTTP (i.e. http://www.mydomain.com/myimage.jpg ).

Sunday, April 8, 2012

Android take screen shot programatically


First off i am writing a root app so root permissions are no issue. I've searched and searched and found a lot of code that never worked for me here is what i've pieced together so far and sorta works. When i say sorta i mean it makes an image on my /sdcard/test.png however the file is 0 bytes and obviously can't be viewed.

Thursday, April 5, 2012

Drawable folders in res folder?


What is the difference between the three drawable folders in the res folder in the project hierarchy? If I have an image to put into a folder, which folder do I put it in?