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
convertprogram to resize images. - PictPress needs the
rdjpgcomprogram to read comments from the images. - The function
exif_read_datamust be available to read EXIF data like picture date etc. - WordPress must have a permalink structure enabled.
Installation
- Unzip
pictpress.zipin the root directory of your site. This creates apictpressdirectory next yourwordpressdirectory. - Move, copy or link the file
pictpress/pictpress.phpto the WordPress plugin directory, e.g. on a Unix system
ln pictpress/pictpress.php wordpress/wp-content/plugins. - Enable the PictPress plugin on the Plugins admin page.
- Insert a line
@import url( /pictpress/pictpress.css );after the import for the WordPress style sheet in yourindex.php. - Insert a line
RewriteRule ^cache/([0-9]+)/(.*) /pictpress/resize.php?size=$1&path=$2 [QSA]in your.htaccessfile.
Configuration
-
TODO
Usage
- First upload one or more JPEG images to the permalink directory you want to use
(I useYYYY/MM/post-namemyself). - Then create a new post that will have this permalink.
- 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. - If you want to edit the post, you have to delete the generated content before pressing Publish again.
May 15th, 2004 at 14:05
[…] :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 […]
May 15th, 2004 at 15:05
Looks good!!
Any chance of prev / next nav once you hit a full size image?
May 15th, 2004 at 16:05
> 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.
May 17th, 2004 at 14:05
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
May 17th, 2004 at 14:05
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.
May 17th, 2004 at 17:05
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!
May 17th, 2004 at 19:05
You need EXIF support compiled into PHP…
I will add the requirement, I am afraid I cannot be of help here…
May 17th, 2004 at 21:05
buahh
my ISP says they cannot install it (it’s not on their list of software compatible with Cpanel).
Thanks for the help though-.
May 20th, 2004 at 21:05
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…
May 22nd, 2004 at 06:05
You can eliminate step #4 by using the wp_head action hook. Just make a function echo out the style link.
May 24th, 2004 at 21:05
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
May 25th, 2004 at 08:05
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.
May 25th, 2004 at 09:05
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!
May 26th, 2004 at 20:05
[…] 2; zach @ 3:08 pm Here’s a link to a possible alternative to WP-photo called PictPress. –> Comments » The URI to TrackBack thi […]
May 30th, 2004 at 22:05
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?
June 4th, 2004 at 00:06
‘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.
June 6th, 2004 at 12:06
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!
June 11th, 2004 at 21:06
I will close this post for comments.
It has been superseded by http://www.curioso.org/2004/05/pictpress-091/
June 17th, 2004 at 22:06
[…] 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 […]
June 30th, 2004 at 05:06
[…] #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 […]