WordPress plugin intelligence profile

Simple Thumbs

Create image thumbs from WP attachments, w/ option to crop & fit to wanted size & create IMG-tags w/ correct width & height attributes.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.0
Current version0.4.1
WordPress coverageTested up to WordPress 3.0
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update12 Jul 201115y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Simple Thumbs version 0.4.1 as active, updated 15y ago and tested up to WordPress 3.0.

Overview

About this plugin

** This plugin will no longer be updated. **

This plugin does three things:

  • It creates rewrite rules that let you create nice urls for your images,

jpg””

  • It let’s you resize and crop images. And you can add unsharp filter to them too.
  • It adds a function, simple_thumbs_img() and with this function you can create ready-to-go IMG-tags

that outputs the correct width and height, even if you choose to resize or crop your image.

Rewrite Rules/Nice Image URLs example

Instead of this URL:

jpg

Your image can have this URL, where 55 is the Attachment ID:

jpg

Shorter and sweeter.

But there’s more! You can also send in some arguments:

Resize the image to be 150px in width:

jpg

Resize the image to be 150px in width, and give it another name (you can name the image to whatever you want)

jpg

Resize the image to 150px in height:

jpg

Resize the image to stay within 150px in height and width:

jpg

Crop the image to exactly 150px in width and height:

jpg

Make a small thumb, and also add an unsharp filter:

jpg

Make a small thumb, and also add an unsharp filter, and output as png:

jpg

_- and |):

jpg

Please note that all the resize stuff where made without adding any querystring to the URL.

This is good for Search Engine Optimization (SEO) reasones, but also for caching reasons.

Google Page Speed will for example give you a higher score because of this! 🙂

All generated images will be cached, so only the first call to each URL restults in an actual resize of the image.

Images are also sent with far future expires headers, so if a user returns to your page all images should load blazingly fast.

simple_thumbs_img(): The Magic Function

simple_thumbs_img() generates IMG tags for you, with the correct width & height attributes set, even after resize.

With no width and height values set, the page may be redrawn several times, resulting in a very “jumpy” page.

Using Simple Thumb to create your image tag will solve this problem.

Lack of width and height atributes in img-tags can also lead to

errors when JavaScript ondomready calculations are made while images are still loading, since

it can’t determine the size of the image.

php

// get img tag with nice url for image with id 55, with the correct width and height attributes set. // do whatever you wan't with it $img_src = simple_thumbs_img("id=55&tag=1");

// print img tag with nice url for image with id 55, with the correct width and height attributes set. echo simple_thumbs_img("id=55&tag=1");

// print img tag with nice url for image with id 55, and resize it to be a thumb that has the max size 75x75, // with the correct width and height attributes set. echo simple_thumbs_img("id=55&tag=1&w=75&h=75");

// print img tag with nice url for image with id 55, and crop it to be a thumb that has the excact size 75x75, //with the correct width and height attributes set, and add an alt text echo simple_thumbs_img("id=55&tag=1&w=75&h=75&m=c&alt=My alternative text");

>

Resize modes

Control the way the thumbs are created by adding parameter “m”, as in “mode”.

To learn how they work just experiment a bit.

  • within = mw
  • crop = mc
  • portrait = mp
  • landscape = ml
  • auto = ma

Filters

  • unsharp mask – good for making small thumbnails appear to have more detail. Once you’ve gone unsharp, you don’t want to go back! 🙂

u0 for note, u3 for sharpest

Donation and more plugins

  • If you like this plugin don’t forget to donate to support further development.
  • More WordPress CMS plugins by the same author.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • gd
  • image
  • photos
  • thumbnails
  • thumbs
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.0
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity12 Jul 201115y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.