{"id":1548,"date":"2005-01-13T00:39:53","date_gmt":"2005-01-13T00:39:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/pictpress\/"},"modified":"2008-11-25T16:12:58","modified_gmt":"2008-11-25T16:12:58","slug":"pictpress","status":"closed","type":"plugin","link":"https:\/\/en-nz.wordpress.org\/plugins\/pictpress\/","author":2101,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5","stable_tag":"1.5","tested":"2.1","requires":"1.2","requires_php":"","requires_plugins":"","header_name":"PictPress","header_author":"Curioso","header_description":"","assets_banners_color":"","last_updated":"2008-11-25 16:12:58","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.curioso.org\/","header_plugin_uri":"http:\/\/www.curioso.org\/pictpress\/","header_author_uri":"http:\/\/www.curioso.org\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":6622,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9","0.91","0.99d","1.0","1.0alpha","1.5"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[163],"plugin_category":[50],"plugin_contributors":[129515],"plugin_business_model":[],"class_list":["post-1548","plugin","type-plugin","status-closed","hentry","plugin_tags-images","plugin_category-media","plugin_contributors-curioso","plugin_committers-curioso"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/pictpress.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>PictPress is a WordPress 1.2\/1.5 plugin that automatically generates a post with thumbnails and picture posts for all images found in a directory. Thumbnails and pictures are resized on the fly and stored in a cache directory. For an example see my post with pictures of a Treble concert.<\/p>\n\n<h3>Usage<\/h3>\n\n<ol>\n<li>First upload one or more JPEG images to a subdirectory of the WordPress upload directory according to the setings for <code>pp_image_dir<\/code> (I use <code>%year%\/%monthnum%\/%postname%<\/code> myself).<\/li>\n<li>Then create a new post that will use this directory (in my case by making sure that date and Post Slug are the same as used for the directory).<\/li>\n<li>When pressing Publish, thumbnails for all images will be appended to the post (with a <code>&lt;!--more--&gt;<\/code> marker after the first five thumbnails) and for each image a picture post will be generated. The thumbnails have links to the picture posts and the pictures have links to the full resolution images.<\/li>\n<li>Titles for the picture posts are either set to the JPEG comment or to the image filename.<\/li>\n<li>Captions under the thumbnails are set to the corresponding picture post titles and follow updates being made to the titles.<\/li>\n<li>When updating a post, any new images in the image directory are merged with the existing post and the thumbnails are replaced by the new set. This is the way to include new pictures after these have been added to the image directory. Edits to posts between the PictPress comment tags are lost; other edits are kept.<\/li>\n<li>Picture posts are suppressed from the post overview pages and in principle should only appear on pages of their own.<\/li>\n<\/ol>\n\n<h3>Configuration<\/h3>\n\n<p>There are a number of options that can be confgured via the PictPress options form that can be reached from the WordPress options pages.<\/p>\n\n<ul>\n<li>Location of image directory<\/li>\n<li>Location of cache directory for resized images<\/li>\n<li>URL used for resized images<\/li>\n<li>Size of thumbnails and images on picture pages\nThis is either a single number, which specifies the maximumn of width and height, or a number of the form WxH, where W and H specify an exact width and height. In the latter case the image is cropped in the dimension that is too large.<\/li>\n<li>Maximum number of thumbnails per page<\/li>\n<li>Number of thumbnails before more<\/li>\n<li>Image resize method, ImageMagick or GD2.<\/li>\n<li>Sorting order for thumbnails.<\/li>\n<li>Strings for use in title, alt attribute, captions.<\/li>\n<li>Protect images against referrers from other web sites yes\/no.<\/li>\n<li>Automatically insert CSS header yes\/no<\/li>\n<li>Generate a single post for all pictures yes\/no; this switches back to the behaviour of the previous version, see the PictPress 0.91 description.<\/li>\n<\/ul>\n\n<p>The strings used for title etc. can contain the following variables:<\/p>\n\n<ul>\n<li><code>%aperture%<\/code>, EXIF aperture setting<\/li>\n<li><code>%comment%<\/code>, JPEG comment<\/li>\n<li><code>%date%<\/code>, EXIF DateTimeOriginal<\/li>\n<li><code>%digitized%<\/code>, EXIF DateTimeDigitized<\/li>\n<li><code>%edited%<\/code>, edited date<\/li>\n<li><code>%exif%<\/code>, table with all info returned by <code>exif_read_data<\/code><\/li>\n<li><code>%exposure%<\/code>, EXIF ExposureTime<\/li>\n<li><code>%focallength%<\/code>, EXIF FocalLength<\/li>\n<li><code>%height%<\/code>, height of image in pixels<\/li>\n<li><code>%iso%<\/code>, EXIF ISOSpeedRatings<\/li>\n<li><code>%make%<\/code>, camera manufactureer<\/li>\n<li><code>%model%<\/code>, camera model<\/li>\n<li><code>%modified%<\/code>, file modified date<\/li>\n<li><code>%size%<\/code>, file size in bytes<\/li>\n<li><code>%sizekb%<\/code>, file size in kilobytes<\/li>\n<li><code>%sizemb%<\/code>, file size in megabytes<\/li>\n<li><code>%title%<\/code>, title of picture post<\/li>\n<li><code>%width%<\/code>, width of image in pixels<\/li>\n<\/ul>\n\n<h3>Template Functions<\/h3>\n\n<p>The following template functions can be used in index.php\/sidebar.php:<\/p>\n\n<ul>\n<li><code>pp_prev_thumb()<\/code>\nGenerate thumbnail for previous picture post if applicable.<\/li>\n<li><code>pp_next_thumb()<\/code>\nGenerate thumbnail for next picture post if applcable.<\/li>\n<li><code>pp_navigation()<\/code>\nGenerate navigation section with thumbnail for previous picture post and thumbnail for next picture post, if applicable.<\/li>\n<li><code>pp_the_parent_title()<\/code>\nPrint the title of the parent post if applicable. Meant to be used before the_title() in the post loop.<\/li>\n<li>`pp_modified_date ($format='', $before='', $after='', $echo = true)\nPrint modified time\/date of current post.<\/li>\n<li><code>pp_edit_subtitles_link($link = 'Edit Subtitles', $before = '', $after = '')<\/code>\nPrint link to edit-subtitles page for current post.<\/li>\n<\/ul>\n\n<h3>Content Tags<\/h3>\n\n<p>PictPress recognizes a number of HTML comment strings and expands them:<\/p>\n\n<ul>\n<li><code>&lt;!--pp-thumb url--&gt;<\/code> expands to a thumbnail image pointing to the post with the specified url.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Prerequisites:<\/p>\n\n<ul>\n<li>PictPress needs either the ImageMagick convert program or the GD2 library to resize images.<\/li>\n<li>PictPress optionally uses <code>exif_read_data<\/code> or the <code>rdjpgcom<\/code> program to read comments from the images.; <code>exif_read_data<\/code> is also optionally used to read EXIF data like picture date etc.<\/li>\n<li>You will need some other means to upload images to subdirectories of the WordPress upload directory.<\/li>\n<\/ul>\n\n<ol>\n<li>Unzip pictpress.zip in the plugin directory of your WordPress site. This creates a pictpress directory plus a pictpress.php file.<\/li>\n<li>Go to the Plugin admin page and press the install\/upgrade link.<\/li>\n<li>Enable the PictPress plugin on the Plugins admin page.<\/li>\n<li>Make sure that you have configured a valid destination directory for Uploads under Options &gt;&gt; Miscellaneous and that the web server has write access to the upload directory.<\/li>\n<\/ol>","raw_excerpt":"Insert a directory of images in a post with on the fly generation of thumbnails.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1548"}],"author":[{"embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/curioso"}],"wp:attachment":[{"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1548"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1548"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1548"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1548"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1548"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-nz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}