This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Get Post Image

Description

Get Post Image can easily resize, adjust, flip, and make a lot of operations in the uploaded images right into the code. Site visitors can’t actually make HTTP requests to generate the images because phpThumb was adjusted to allow only WordPress to do it. The image will be saved in the same directory of the converted image and will never be processed again.

Usage

For example, to display a post thumbnail in a 200×100 format, you can simply do:

get_post_image('w=200&h=100');

Or as a shortcode in the post content:

[get-post-image phpthumb="w=200&h=100"]

If the picture is a little bit dark, you can increase brightness in 20% with:

get_post_image('w=200&zc=1&fltr[]=brit|20');

And the shortcode:

[get-post-image phpthumb="w=200&zc=1&fltr[]=brit|20"]

There’s many more options. Please visit the plugin page for configuration, usage, examples and other information.

Screenshots

  • Flip vertically: get_post_image ('w=200&zc=1&fltr[]=flip|y');
  • Resizing to 300x300px: get_post_image ('w=300&h=300');
  • Adjusting brightness: get_post_image ('w=200&zc=1&fltr[]=brit|20');
  • Applying mask: get_post_image ('w=200&zc=1&fltr[]=mask|/path/to/camel-abstract.png&f=png');
  • Watermak image: get_post_image ('w=200&zc=1&fltr[]=wmi|/path/to/camel-logo.png|T|50|5|5|320');
  • Mask applyed
  • This is the original image.
  • Text: get_post_image ('w=200&zc=1&fltr[]=wmt|I\\''m a Camel! ©|16|C|FFFFFF|/path/to/liberation-sans.ttf|100|10|0|000000|80|x');

Changelog

0.08

  • Allow any location in filesystem for the image to be converted

0.07

  • Adjusting rules to get the proper post_id

0.06

  • Adjusting rules to get the proper image_id

0.05

  • Removing get_the_image dependency
  • Converting images on the server side
  • Adding the security password
  • Improving the calling method

0.04

  • phpThumb update to fix security issues;
  • Displaying nice error messages instead of breaking execution.

0.03

  • Minor changes to make it work properly on Windows servers.

0.02

  • Changed the way of calling the plugin, now it’s done via an array of options. See the documentation for more info;
  • Now it works with multisite. There’s no absolute way of make it work. Some servers and websites will need a different parse to get the images path;
  • There’s a verification to check if “get-the-image” is also installed.

0.01

  • Plugin released. Don’t expect multisite to work.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code