Image Gallery Post Generator

June 29th, 2006 | del.icio.us! | digg! | reddit!

This plugin is used for post or page generation from existing directory pre filled with images. Now supports attachments generation.
Demonstration Galleries

Download latest version of the plugin

Requirements

  • GD 2.0
  • FTP Access to your hosting account
  • Optional: EXIF

How to use

  • Unzip, and upload to wordpress plugins folder;
  • Go to Wordpress Admin and activate plugin on Plugins page;
  • Create somewhere on your hosting account gallery folder and upload images into it;
  • In Wordpress admin click Write->Import Images;
  • Enter your Gallery full server path or relative path according to your Wordpress root (example wp-content/galley/my-images), in this case you may leave URL empty (in relative path is used)
  • Select desired thumbnail dimensions (or check `Skip resizing`) and click [Generate]. Then wait until plugin will generate thumbnails (if applicable);
  • You will be redirected to edit page or post with all images embedded into your post, all you need is to set up Categories and titles for your post.

This is the easiest way to create galleries within Wordpress without third party modules.

  • v2.1 UPDATE: Added support attachments generation.
    Now you may import images as attachments (bound to post/page) and re use them anywhere when ever you need them again. More resizing options added (no thumbnails).
    Fixed post/page target selection.
  • v1.3 UPDATE: Added support of EXIF tags (optional) and %url% - link to actual image to implement complex macros for external image processing.
  • v1.2 UPDATE: Added error detection and path validation; Added support of Wordpress 1.5. Also plugin will warn you if GD is not detected in your PHP;
  • v1.1 UPDATE: Now you may specify image prepend and append texts (including XHTML tags) and use macros: %file% - replaced with filename, %width% and %height% (actual width and height of image).

Download MP3 Music

69 Responses to “Image Gallery Post Generator”

  1. Lorelle Says:

    This sounds very interesting. Do you have a test page set up to show us what the “gallery” would look like? That would help a lot.

    Thanks! And keep up the great work.

  2. lordtime Says:

    Gallery examples are here

    http://www.internetvibes.net/gallery/

    thanks!

  3. tweeky Says:

    Not working. It said that my home directory is not writeable, but im sure that it is.

  4. lordtime Says:

    you must make sure your image gallery directory is writeable! Plugins generates thumbnails and must create subfolder in it

  5. lordtime Says:

    Plugin updated! Check out new features

  6. Robert Says:

    Does this plugin work with WP 1.5.1?

    Getting a fatal error no matter what I put in for path or url.

    Fatal error: Call to undefined function:
    wp_mkdir_p() in /home/httpd/vhosts/………../httpdocs/wordpress/wp-content/plugins/imagewiz.php on line 60

    Tx, Robert

  7. Jeff Rayner Says:

    i keep getting the following error:
    Fatal error: Call to undefined function: wp_mkdir_p() in /home/blaylock/public_html/blog/wp-content/plugins/imagewiz.php on line 60

    for reference here are my selected options:
    Post Title: Testing Pics
    Post Type: Page
    Album Base URL: (dont understand this, but from your comments above, i left it blank)
    Album Local Server Path: blogpics/
    Number of Images Per Page: 10
    the rest i left as defaulted

    i have no idea of what that error means, so any help is much appreciated.

    Thanks!

  8. s1n Says:

    I am seeing the following error when I attempt to create a page:

    Fatal error: Call to undefined function: wp_mkdir_p() in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 60

    Does this require a particular version; I could not find the wp_mkdir_p function in my wordpress install.

  9. s1n Says:

    Okay, downloaded the latest functions-post.php and now I’m seeing these errors:

    Warning: getimagesize(): Read error! in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 68

    Warning: getimagesize(): Read error! in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 68

    Warning: getimagesize(): Read error! in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 68

    Warning: getimagesize(): Read error! in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 68

  10. lordtime Says:

    looks like its incompatible with WP 1.5, i will upgarde it tomorrow to be working with WP 1.5. Anyway upgrade will contain some new features!

    To S1n, looks like plugin cannot read your images or path was specified wrong! please check it!

  11. s1n Says:

    I was trying to figure out what was causing this since I chmoded everything to 777. The files are clearly readable and the direcotry is clearly writable. So I decided to find out what file was being read on the getimagesize. Here is my debug output:

    IMAGE: /var/www/localhost/htdocs/wordpress/wp-content/photo/birdie; FILE: birdie
    Warning: getimagesize(): Read error! in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 68

    Note that the directory the photo albums are contained in is called ‘photo’, which contains 1 directory, ‘birdie’. It tries to handle this subdirectory as an actual image and not a directory.

    This would be a useful feature.

  12. s1n Says:

    I moved all of the images to the basedir and made them fully readable and writable. Now I am greeted with a blank page. Nothing but a new directory ‘th’; no new files, no drafts.

  13. lordtime Says:

    we’ll wait for today’s update! with `bugfixes`

  14. ryoken Says:

    is it compatible with 2.1? that would be handy as well.

  15. lordtime Says:

    i think yes, nothing special in 2.1 to prevent it working there

  16. lordtime Says:

    please check out updated version!

  17. alexandre van de sande Says:

    I know it must be just obvious for you, but you know what I really miss on this post? A big link saying “to see a demo of what this plugin does, click here”. I landed directly on this page again and again while seeking a WP image gallery plugin and it really bothers me to see so many instructions on how to install it and not to be albe to judge if this is what I want or what…

    thanks..

  18. lordtime Says:

    Ok, Demo link is on the top of this page!

    But you may suspect that site galleries was created with this plugin :)

  19. s1n Says:

    There is a requirement to have GD installed, is this for the thumbnail creation only? This does not resize on the fly, correct?

    If so, I will try your latest version again tonight to see if it solved my woes of earlier.

  20. lordtime Says:

    Yes it does not resize on the fly and GD is used for thumbnails generation (wht else we may suggest? GD is used everywhere :), resizing on the fly will be killing feature for your webserver !

  21. s1n Says:

    I have 2 feature suggestions: 1) it would be great if this could read EXIF information and 2) it would be nice to be able to order the images from shutterfly type of sites.

  22. lordtime Says:

    hi!
    i understood first :) why not!
    could you please explain more about shutterfly ?

  23. s1n Says:

    Shutterfly integration would mean that I could click on one of the images (or an icon below/above the image) and have it add to the shutterfly cart.

    A good example of an application that does this would be JAlbum (www.jalbum.net). There is even a JavaScript (or beanscript, I can’t recall) that you might be able to get from them.

  24. s1n Says:

    Also, can this process an arbitrary number of subdirectories? I have a rather large photo collection that is organized by directories.

  25. s1n Says:

    I just tried the new version 1.3 and I found some errors:

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 345

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 350

    Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 358

    Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 359

    Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 360

    Warning: imageline(): supplied argument is not a valid Image resource in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 361

    Warning: imageline(): supplied argument is not a valid Image resource in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 362

    Warning: imagejpeg(): supplied argument is not a valid Image resource in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 366

    Warning: getimagesize(/var/www/localhost/htdocs/wordpress/wp-content/photo/rose/th/100_1154_thumb.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/localhost/htdocs/wordpress/wp-content/plugins/imagewiz.php on line 160

    I should point out that I have exif enabled:

    EXIF Support enabled
    EXIF Version 1.4 $Id: exif.c,v 1.173.2.5 2006/04/10 18:23:24 helly Exp $
    Supported EXIF Version 0220
    Supported filetypes JPEG,TIFF

    Any ideas?

  26. s1n Says:

    Okay, what was causing that was an attempt to use the %width% and %height% specifiers in the height width fields.

    It would be fantastic if I could use a percentage for the icons. On images that do not scale well to the resolution I use in these fields, they look either stretched or elongated.

  27. s1n Says:

    Also, if the EXIF tag does not exist, the text is not replaced. It would be nice if the text came out to be empty.

    I am also having trouble with line breaks.

    Check out a sample on my site (http://s1n.dyndns.org/index.php/rose/).

  28. lordtime Says:

    ok. i’ll take look around it!

  29. impulse Says:

    Great idea.

    I get an error though:

    WordPress database error: [Unknown column 'none' in 'field list']
    INSERT INTO wp_post2cat (post_id, category_id) VALUES (210, none)

    Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/i/d/idfact.net/htdocs/ifolio/wp-includes/wp-db.php:102) in /data/members/paid/i/d/idfact.net/htdocs/ifolio/wp-content/plugins/imagewiz.php on line 193

    bye

  30. lordtime Says:

    its because of you didn’t have default category set in wordpress… this is not a plugin error

  31. Noah Says:

    Awesome plugin. Saved me loads of work.

  32. Enrico Says:

    A good idea can be add a TEXT Watermark processing fuction….for add an watermark to thumbnails and original pictures….

  33. Enrico Says:

    This plugin add watermark to all standard uploaded picture…..

    you can re-use this and add this good function to your plugin…

    http://www.malcherek.de/index.php?seite=wordpress.php

  34. lordtime Says:

    good :) thanks! but a bit later

  35. Sanyol Says:

    Great. Thanks for plugin

  36. Willer Says:

    Good. I use this

  37. Shewldom Says:

    WOW its very good way to publish the pictures!

    Thanks fot this great plugin…

    If i can sugest some updates, is tu the writer can put sume codes after all the pictures and after all… like we aredly do with one by one picture.

    Tkz

  38. Matthias Says:

    Works great with up to 15-20 figures - however my provider then kills the job. Is there any chance to load into $files only those pictures without thumb nail? This would give me a chance to have at least after the third timeout a working gallery. BTW is the authimage used here still available somewhere on the net? Many thanks!

  39. lordtime Says:

    Actually in Plugin options turn off the resize feature…

  40. Lee Says:

    Hi, great plugin! (I even got it working after wondering a while about the Album Base URL and the Album Local Server Path…)

    I’m greedy, I know, but is it possible to have an option to generate the page with images in 2 columns, rather than one long one?

  41. lordtime Says:

    hi!

    it is possible if you will add html to generator template (pre html and post html and ajustt css)

  42. Boldt Says:

    This is what I have been looking fore.
    Scale to fit my template but keep my originals.

    1 question: when I create a new gallery thumbs are also created and then a page/post is created; Is it possible to have the page created with thumbs instead?

  43. Boldt Says:

    Found the answer.

    The programme is using the thumbs on the page

    so now I only have to find a good size for my wp.

    Is it possible to automatically to have 2 or 3 thumbs per row?

  44. far Says:

    Hi, your plug in not function with 2.1 wordpress version! please help

  45. lordtime Says:

    and waht is the problem with 2.1 ?

  46. moonswamp Says:

    HI,i’ve collect your plugin in my blog:
    http://www.tearsea.com/?p=549

    This a great one!!!

  47. ¥€$ Says:

    Thanx for this plugin!
    It works fine.

  48. AngelArs Says:

    All we get are errors :(

    I think it may be because of the Album Local Server Path setting. What is a correct example of this? We tried several with no luck. This is what we’re using now:

    blog/wp-content/gallery

    Is this what it’s looking for?

  49. John Says:

    Hey mate, thanks for the plugin. John :-)

  50. Jeff Says:

    Hi Folks, thanks for the plugin and the time you spend on it. Thanks for sharing the plugin now. Jeff

  51. Strafverteidiger München Says:

    Hi, thanks for the plugin. Very usefull for us.

  52. Van D. Says:

    I’ve got a problem. The plugin doesn’t create any thumbnails. He creates the folder “th” but there is nothing in this folder. The plugin redirects me to: http://xxx.xxx/wordpress/wp-admin/post.php?page=imagewiz.php&noheader=1

    but absolutely nothing happens. no new page, no redirect, no nothing. what am I doing wrong?

    Oh, and what does Album Base URL mean (maybe that is the whole problem :P)

  53. Sue Says:

    Couldn’t get it to work with Wordpress 2.1. Got an error relating to PHP safe mode.

  54. lordtime Says:

    this plugin and many other will never work on safe mode as safe mode restricts functionality of many useful php features.

    imho safe mode is a redundant paranoia of sysadmins

  55. alex Says:

    Is there anyway to have the plugin create a PAGE instead of a post? I set it to create a page, but it always creates a post in the main blog body…

    Thanks so much and thank you for the great plugin!

  56. kenia safari Says:

    just wondering what is the difference between a page and a post?

  57. Martino Says:

    Cool plugin!
    I’ve been searching for this.
    Thanks a lot!
    MARTINO :)

  58. Sohbet Says:

    I think Trackback is a very good function for Weblogs to exchange under each other.

  59. free affiliate programs Says:

    nice plugin, ideal for my blog usage, thanks once again and keep up the hard work

  60. onlinekredit Says:

    that’s the plugin i need.
    is there any chance to combine it with google picture search?

  61. Tiki Says:

    Any hope of making the images attachments to the post, so the images use the attachment.php template when clicked? I realize it’s been about a year since you last updated, but I can always hope :)

  62. sohbet Says:

    many many thanks this pluging will help me i bookmark this page

  63. lordtime Says:

    plugin updated - now with attachments!

  64. mirc Says:

    thanks for dude.. this is nice blog.

  65. sex Says:

    thanks regards… wonderful…!!!!

  66. elektronik sigara Says:

    thanks….

  67. 2007 2008 full albümler Says:

    http://www.buzlas.net
    2007 2008 full albümler

  68. motorsiklet Says:

    waaavv thanks a lot..

  69. motor Says:

    thanksssss

  70. test Says:

  71. Negrosoft Says:

    Negrosoft Medya ve Bilişim Teknolojileri

    Web site tasarımı, web site programlaması, web site barındırma, veritabanı yedekleme ve veri depolama hizmetleri, logo, banner, gazete, dergi ilanları, amblem, katalog, broşür, takvim, afiş, poster tasarımı, kurumsal kimlik tasarımları (kartvizit,antentli kağıt vb.), e-ticaret, eğitim ve tanıtım prezentasyonları, internet reklamcılığı, arama motoru optimizasyonları, bilişim danışmanlığı…

  72. max_g Says:

    Hello, have problem with path’s
    (`Album Local Server Path` is not found ! Please check if its correct!)

    Can some one post path’s exempls ?

  73. sohbet Says:

    thanx for nice share artichle

  74. Sohbet Says:

    thanks my friend…

  75. sex Says:

    you very nice 1

  76. Çet Says:

    Thanks

  77. sohbet Says:

    thanks a lot

  78. muhabbet Says:

    thankss

  79. sohbet Says:

    thks a lot

  80. sohbet odaları Says:

    thanks

  81. evden eve nakliyat Says:

    Sounds like a good show..
    than you

  82. dedikodu Says:

    dedikodu, sohbet, chat, muhabbet, muhabbet sitesi, sohbet odaları, chat sitesi, bedava sohbet, trsohbet, tr sohbet

  83. sohbet Says:

    Thanks a lot very good Yes Thats is a good idea

  84. gazeteler Says:

    thnx for post!


ThinkGeek - Cool Stuff for Geeks and Technophiles

Leave a Reply