Welcome To Snipplr
Everyone's Recent Snippets Tagged images
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Very simple use of an non-animating spritesheet for iOS
0
1058
posted 10 years ago by sidneydekoning
C#
C#/.NET Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET
0
1827
posted 10 years ago by johansonkatherine
More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
0
999
posted 11 years ago by rickygri
This handy tool takes raw CSS and finds all relative URLs for background images and injects the absolute path. After which all the background images are displayed on the page. This is useful if you need a quick way to save all background images at on...
0
883
posted 11 years ago by pussard
Each image is positioned, dimensioned, and repeated according to the comma separated values in the other background properties. The images in the list are layered front to back in the same order they are listed in the rule declaration. If a backgroun...
0
1077
posted 11 years ago by COBOLdinosaur
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1
1129
posted 11 years ago by zartgesotten
One of the limits of using lists (ordered and unordered) is that they have no provision for a heading. You can do something like: <ul>This is a Title<li> etc... but it is invalid because the list containers can only contain List Items. One way common...
0
896
posted 11 years ago by COBOLdinosaur
One of the great methods to load and work with icons in web pages is to load one image that is a collection of several icons and use any icon as needed, that reduces the number of server request and save bandwidth.
1
994
posted 11 years ago by codingforever99
The nice part about it is that the caption is locked to the image. The figure can be positioned and styled and the caption can be rendered with any affect that can be applied to any other text element.
0
859
posted 11 years ago by COBOLdinosaur
If you are using the [TimThumb](http://code.google.com/p/timthumb/ "TimThumb on Google Code") script with a URL the contains tildes (~) and images are breaking, here is the fix...
I did not create this snippet but found it extremely useful so I th...
0
1006
posted 11 years ago by tacudtap
simple image rotation script; save as rotate.php in folder with images, call <img> to display
0
1051
posted 11 years ago by goddess
Here is a set of functions that can be very useful: Give this script the url of a webpage, and it will save all images from this page on your server.
1
1657
posted 11 years ago by goo
Set the desired date within the function.
Make some images and label them "1.jpg, 2.jpg, 3.jpg, etc...".
That's how it's done.
1
912
posted 12 years ago by o0110o
description from title, image size from function.php (add_image_size( 'descr', 278, 200, true );)
0
1022
posted 12 years ago by shin
- Use custom image size within template (including if exist)
- Add a class name to a custom image size
0
960
posted 12 years ago by thescottlee
this can run before $(document).ready event, since it doesn't rely on any DOM.
1
857
posted 12 years ago by Narayon
Just call "ProcessImageAndItsThumbnail" with your newly uploaded image's URL, and it will resize it for you, and make a thumbnail as well. Just remember to set the sizes you want for these new images.
1
983
posted 12 years ago by Krummelz
Takes an image (path or url) and extracts the 7 most common colors and returns their hex values.
0
1091
posted 12 years ago by kellishaver
There are 2 jQuery snippets, both replace broken images with one of your choosing, the difference is that one is "safe" and the other is "persistent". The safe one will quick working, so if your doing something that dynamically changed images on a pa...
3
1041
posted 12 years ago by FatFolderDesigner
Wordpress by default wraps images in <p> tags, this kills that.
3
990
posted 12 years ago by rliverman
This is an example of omitting the width and height attributes from a thumbnail img tag in Wordpress. Useful if you are working on a responsive design. Use inside The Loop.
0
781
posted 12 years ago by f6design
Add this snippet to your Wordpress theme's functions.php file to reject any image uploads that are below the specified dimensions.
2
1022
posted 12 years ago by f6design
This snippet adds support for post thumbnails (a.k.a. 'featured images') to a Wordpress theme. It also adds an additional image size for image thumbnails, hard cropped. This second step is optional.
Add this snippet to your WP theme's functions.ph...
1
931
posted 12 years ago by f6design
wrote this snippet as a necessity to preload many images without writing same code all the time in JS...
0
806
posted 13 years ago by alik
Checks for image files in directory and creates a XML file of the contents
0
968
posted 13 years ago by Don_Jarmo