PictPress 0.9



Update: The newest version is PictPress 1.0.

PictPress is a wordpress plugin that automatically appends thumbnails and picture pages to a post for all images found in the directory corresponding to the permalink of the post. Thumbnails and pictures are resized on the fly and stored in a cache directory. For an example see my post with Vermeer paintings.

Requirements

  • PictPress needs the ImageMagick convert program to resize images.
  • PictPress needs the rdjpgcom program to read comments from the images.
  • The function exif_read_data must be available to read EXIF data like picture date etc.
  • WordPress must have a permalink structure enabled.

Installation

  1. Unzip pictpress.zip in the root directory of your site. This creates a pictpress directory next your wordpress directory.
  2. Move, copy or link the file pictpress/pictpress.php to the WordPress plugin directory, e.g. on a Unix system
    ln pictpress/pictpress.php wordpress/wp-content/plugins.
  3. Enable the PictPress plugin on the Plugins admin page.
  4. Insert a line @import url( /pictpress/pictpress.css ); after the import for the WordPress style sheet in your index.php.
  5. Insert a line
    RewriteRule ^cache/([0-9]+)/(.*) /pictpress/resize.php?size=$1&path=$2 [QSA] in your .htaccess file.

Configuration

    TODO

Usage

  1. First upload one or more JPEG images to the permalink directory you want to use
    (I use YYYY/MM/post-name myself).
  2. Then create a new post that will have this permalink.
  3. When pressing Publish, thumbnails for all images will be appended to the post (with a --more-- marker after the first five thumbnails) and for each image a picture page will be appended to the post. The thumbnails have links to the picture pages and the pictures have links to the full resolution image.
  4. If you want to edit the post, you have to delete the generated content before pressing Publish again.

20 Responses to “PictPress 0.9”

  1. #WordPress » LrdDNattor says:

    […] :46 am –> I mentionned a connection between gallery and wordpres earlier… here it is: http://www.curioso.org/2004/05/pictpress –> Links Matt Mike Mindful Musings Weblog Tools Col […]

  2. Jonathan Greene says:

    Looks good!!

    Any chance of prev / next nav once you hit a full size image?

  3. Curioso says:

    > Any chance of prev / next nav once you hit a full size image?

    Yes, I intend to add template functions that generate a prev/next thumbnail.

  4. Esther says:

    I followed all your instructions (permalinks enabled and structured like yours, plugin anabled, pitpress directory installed, css in index.php) and I’m certain I have ImageMagick installed but nothing is showing. I’ve created a post with permalink matching the directory where the photo is.
    How could I test what’s wrong?
    If you have a thread on pictpress just direct me to it. In the meantime thanks for your help and for the plugin :-)

  5. Curioso says:

    Esther, did you add the ReWrite rule to your other .htaccess rules?

    The resize.php script will create a cache directory at the top level, so the top level directory must be writable for it.

    You can try if the caching is working by trying to retrieve http://your.web.site/cache/100/permalink/image-file, where permalink is your permalink and image-file is the name of one of your images. This will return a 100 pixel version of the image and store it at /cache/100/permalink/image-file.

  6. Esther says:

    you were right, I had left out that rule (after so much editing for the permalinks), but it is not working either.
    I forgot to tell you I have pictpress directory inside the wordpress directory as that is my main root directory, so I had to change the import css url and I have done so too in the httaccess /rootdirectory/pictpress/resize.php…
    Now I get this error with your test Fatal error: Call to undefined function: exif_read_data() in /rootdirectory/pictpress/class.image.php on line 12
    I’m getting closer!

  7. Curioso says:

    You need EXIF support compiled into PHP…
    I will add the requirement, I am afraid I cannot be of help here…

  8. Esther says:

    buahh :-( my ISP says they cannot install it (it’s not on their list of software compatible with Cpanel).
    Thanks for the help though-.

  9. musings v2.1 says:

    PictPress
    I just ran across a link for a new WP plugin to handle adding photos to posts. It’s called PictPress and it looks pretty good. Unfortunately from the meager instructions on Curioso’s site, it looks like this is only designed to work with WP 1.2…

  10. Matt says:

    You can eliminate step #4 by using the wp_head action hook. Just make a function echo out the style link.

  11. Troy says:

    Hi Curioso, I am running a Win 2003 server with IIS 6.

    Is simply installing ImageMagick and copying the rdjpgcom.exe files to the C:WINNT directory sufficient for your plugin to use them?

    Just trying to figure out why it isn’t working for me :)

  12. Curioso says:

    Troy, I have no experience with running PHP under Windows. If rdjpgcom is in the search path, PHP should be able to find it I assume.

    I will make the rdjpgcom stuff optional in the next version, it is not essential.

  13. Troy says:

    Yeah, I quickly realized that the plugin was designed for Apache when I hit the mod_rewrite step. Win servers have their own interpreters for it, but you usually have to pay. Looking forward to your next (permalink free) version :) Good work so far, though!

  14. my weblog » PictPress says:

    […] 2; zach @ 3:08 pm Here’s a link to a possible alternative to WP-photo called PictPress. –> Comments » The URI to TrackBack thi […]

  15. Ross says:

    Hi

    I’ve done everything as you said. Installed plugin, pisctpress in root, doing permalinks /%year%/%month%/%postname%/ and added this to .htaccess in root, added the cache rewrite to .htaccess in root.

    My test blog is at this permalink… http://blog.kultured.com/2004/05/this-is-a-test/

    So I put my images in a folder at /var/www/blog/2004/05/this-is-a-test/xxx.jpg and when I go to publish nothing happens!

    Am I doing something really dumb?

  16. shai says:

    ‘been trying to get this to work - but something’s amiss. i’ve even asked for my host provider to help in troubleshooting the script (they’re great with this sort of thing). but, even they can’t figure out what’s wrong. looks like i’ve done everything right & i was told that i’ve got all the system requirements. but, my test post is still coming up empty.

    i didn’t try doing this - ” You can try if the caching is working by trying to retrieve http://your.web.site/cache/100/permalink/image-file, where permalink is your permalink and image-file is the name of one of your images. This will return a 100 pixel version of the image and store it at /cache/100/permalink/image-file. ”

    and, i have no plans of doing so either. if i have to resort to that, i’ll have to move along.

  17. maestro says:

    I’ve got the same problem as Ross: I click publish but no thumbnails show up. I know the caching is working because “http://[mysite]/cache/100/[path]/[image] returns the thumbnail correctly. Do you have any suggestions? Thanks!

  18. Curioso says:

    I will close this post for comments.
    It has been superseded by http://www.curioso.org/2004/05/pictpress-091/

  19. look at this! » wordpress and pictures says:

    […] ictures Filed under: technotes — mathieu @ 18:13

    Just tried to install Pictpress. Should have worked except for the ImageMagick requirement, which in turns requires a whole b […]

  20. CoffeeBear.net » Links to WP1.2 Plugins says:

    […] #8217;s still bloody useful. Word/Image Count OpenPGP signed comment plugin Topic Icon PictPress Comment Preview for WordPress 1.2, thread on WP Support Forums Convert Hac […]