{ Snipperize } /image

Snippets about image

Here are the latest snippets talking about image. Please choose your favorite one or add a new one.

Auto-Replace Broken Images

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 page it'll only work for the first broken image. The persistent one will keep working, but if your missing image image is missing it'll cause a overflow error.

Javascript / jquery, auto, replace, image, img, broken, error / by ThePeppersStudio (527 days, 9.23 hours ago)

Correct Way to Draw Background Using a Pattern Image

Correct Way to Draw Background Using a Pattern Image

Objective-C / background, pattern, image, nsimage, nscolor, nsgraphicscontext / by ThePeppersStudio (1074 days, 4.03 hours ago)

Disallow Linking to the Images from Outside of your Site based on Htaccess

Replace "mysite" with your own and this will block access to sites attempting to link to your images. Note, it's not necessarily always a bad thing for people to link to your images. If you run a blog, portfolio, or sales gallery, etc, you may actually want your images to show up in google image search results and the like. Careful that you're not blocking your goals along with the images. Make sure this script is for you.

Apache / HTTP_REFERER, rewrite, htaccess, image, block / by ThePeppersStudio (1079 days, 6.88 hours ago)

Image to colortext(html) converter

It converts any image to colored text (html). In order to compile textimg you will need to install magick++ dev libraries.

C++ / magick++, image, text / by ThePeppersStudio (1159 days, 0.46 hours ago)

CSS Image Hover

CSS image hover with fade in-out effect.

CSS / image, hover, fade, transition / by ThePeppersStudio (1238 days, 23.29 hours ago)

Embed Image as Code

Saves an image as code. Useful for small images.

Javascript / image, base64 / by ThePeppersStudio (1346 days, 4.01 hours ago)

Sort JPGs by EXIF-Date in Directory Structure

This snippet takes all .jpgs in a Directory (INDIR) and puts them into a date-based directory structure inside OUTDIR.

Python / jpeg, exif, image, sort / by ThePeppersStudio (1386 days, 2.06 hours ago)

Preload Images Use CSS

This is a really useful techniques for preloading images on your website. Just place this code after the body tag in the CSS file. Everytime you refer to this image in your CSS file the image will be loaded from cache.

CSS / image, preload, cache / by ThePeppersStudio (1408 days, 2.50 hours ago)

生成一个像素的PNG图片

PHP / gd, image, img, png, repeating, tiles, transparent / by ThePeppersStudio (1429 days, 3.13 hours ago)

  • 1