Welcome To Snipplr


Everyone's Recent Snippets Tagged image



Thank you marcg for posting this on Snipplr http://stackoverflow.com/questions/1379994/detect-when-a-specific-image-has-finished-loading
0 1220 posted 13 years ago by focal55
This snippet will exclude the featured image from the attached images (gallery)
0 1095 posted 13 years ago by nerdsane
This is an slightly more involved processing basic sketch I use when creating Imagery so I can save and output images at any point in time when the sketch is running.
0 3173 posted 13 years ago by Kobby
This snippet shows how to create indexed color bitmap in C#. The code also shows how to access and modify pixel data using LockBits.
0 2514 posted 13 years ago by putu
Creates rotating background images with a smooth transition.
1 1505 posted 13 years ago by ryonley
Checks to make sure the file is a valid image file, checks max file size, and directory write permissions, requires 'fileutils' gem.
2 3417 posted 13 years ago by kellishaver
UPDATE: might be easier or faster to use this now (also courtesy Pippin): http://pippinsplugins.com/get-all-attached-media/ **courtesy Pippin Williamson (http://pippinsplugins.com/image-gallery-short-code-using-post-attachments/) use shortcode...
1 1384 posted 13 years ago by adambundy
Converts black to alpha.
0 1156 posted 13 years ago by playfulsystems2
Just pop this in your IMG tags
2 2324 posted 13 years ago by xcsteve99
Funció que agafa les mides de la pantalla i redimensiona proporcionalment una imatge per a que s'adapti a ella.
0 1323 posted 13 years ago by hectorlorenzo
wrote this snippet as a necessity to preload many images without writing same code all the time in JS...
0 1239 posted 13 years ago by alik
The admin pages listing the site’s posts and pages come with various text columns (title, tags, categories, author and so on). In order to see what the featured images are, you have to visit each post or page individually. What I will show here, is...
0 1329 posted 13 years ago by i-am-andy
Changes the title and moves the featured image box in Wordpress admin area. Add this to functions.php
0 1255 posted 13 years ago by i-am-andy
Add or Change Content in the Featured Image Meta Box Posted on March 21, 2011 Perhaps you need to provide a little extra instruction about the Featured Image meta box. It doesn’t take much to add your own text to that box:
0 1409 posted 13 years ago by i-am-andy
Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.
0 4277 posted 14 years ago by m1b
Adds a class to the standard classes in Images in Posts/Pages
0 1249 posted 14 years ago by maxxscho
<?php> will random load images named (in this example) image_1.jpg up to image_5.jpg
0 2263 posted 14 years ago by DeluxiveState
Using the ID of a page, you can get the content, the featured image and the title to power widgets in your template.
0 1185 posted 14 years ago by mejamiewilson
A function that resizes an image to desired width and height, but does not distort the image proportions. Works for JPEG, GIF and PNG.
0 1550 posted 14 years ago by TimoZachi
Really simple jQuery random image
0 1135 posted 14 years ago by i-am-andy
Simple call imageExists('http://example.com/image.jpg'); true if it exists else false.
0 1473 posted 14 years ago by MichaelM
used as so <style> .logo { background: url("<?php>") no-repeat right 5px; } </style> or <img src="<?php>"/>
0 1195 posted 14 years ago by alyssonweb
image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.
0 1298 posted 14 years ago by inreflection7
Or remove the whole line for no link at all!
0 1234 posted 14 years ago by xcsteve99
0 1262 posted 14 years ago by ajbatac