FlatPhoto, automatic photo blogging plug-in for FlatPress
FlatPhoto is a FlatPress plug-in I have created to post photos to a FlatPress blog. I have made a big emphasis in taking advantage of the photo meta data (EXIF and IPTC) so it is possible to generate entire posts out from an image’s meta data alone.
FlatPhoto 0.1alpha is functional but not thoroughly tested jet so you should use it with caution. Download it here
Features
- Generate an entire post complete with title, content, image and photo metadata just by uploading an image file.
- Post multiple photos at once.
- Images can be uploaded to any folder you want. (fp-content/images/ by default)
- Multi language support. (new in v0.1beta)

Installation
- Download and extract the plug-in to your flatpress/fp-plugins folder as usual.
- Enable the plug-in in the administration interface.
Usage
FlatPhoto adds a new tab to the plug-ins section of the administration interface. From this tab you can select several photos to upload at the same time. For every picture you upload, a new FlatPress entry will be created containing that photo and showing a part of its meta data if available.
By filling the “Post title” field of a photo you can set the title of the corresponding generated post; if left blank, the title will be extracted from the “Headline” IPTC field if present, in case it is not, then the title will be just the image file name without extension.
By default the posts will appear as if posted the moment the picture was taken (by extracting the “DateTimeOriginal” or “DateTime” EXIF fields) this can be overridden by checking the “Ignore Photo timestamp” check box of the desired photo entry. In this case the photo will appear as posted at the current date and time.
You can also post to drafts if you want by checking the “Draft” check boxes. By default all images are uploaded to the images direcory (fp-content/images), this can be easily overridden by filling the “Upload to folder” field.
Each post will show the uploaded image, a table with some of the most relevant technical information of the photo (exposure, ISO, etc), location and a caption extracted from the “Caption” IPTC field.
Each image will also be posted under the categories listed in the “Tags” IPTC field, all tags refering to non-existing categories will be ignored.
MaPiVi is a GNU/Linux program that can be used to easily edit the meta data of images, KDE users can use the excellent digiKam photo collection management program, Windows users can use ACDSee or any other.
The appearance of the posts can be customised by altering the post.tpl template.
Motivation
I have being looking for a photo gallery system in PHP that I could integrate with FlatPress. I wanted support for meta data and commenting capabilities, a little bit like in photo.net. Even though I found several good alternatives I could not find the way to fit any into FlatPress, mostly because I wanted it to use the existing FlatPress comments subsystem.
After noting that a few other FlatPress users are photo enthusiasts and some are also looking for (or writing) a solution like this one I decided to go for it and write my own with the hope that it could be useful to other as mush as to me, and that maybe they could help me improve it further. Please feel free to leave comments or drop an e-mail.
There are several features still missing, maybe the most important of which is some sort of “gallery view”: some place where all pictures are presented in thumbnails and every thumb links to the corresponding post.
- 12 comments // Permalink // Add to...
RandImage the random Image plug-in
RandImage is a plug-in for FlatPress that adds a new widget showing an image randomly selected from a folder. As seen in the right bar.
By default the images folder is used but this can be easily customised. Just edit the $imgpath variable in the plugin.randimage.php file to whatever you want.
This is a very simple plug in for flatpress, I hope it can be of use to you. Any suggestion or recommendation is welcome.
New in version 0.2: EXIF support no longer needed.
New in version 0.3: Fixed image folder path error.
Download randImage plug in.
- 19 comments // Permalink // Add to...
A word or two on FlatPress
FlatPress is a simple open source blogging engine. It doesn’t require a full fledged database because it uses flat files instead. Has an extensive plug-in architecture, with a big part of its default functionality implemented as “standard plug-ins“. There is also a considerable amount of “extra plug-ins” available for download, many of which are user contributed. FlatPress implements a template system which allows to seamlessly modify your blog’s appearance, there is a list of downloadable themes on their site too. Even though the author says FlatPress is not “Wordpress on flatfiles” it certainly is a very good alternative to WordPress for those without a SQL database at hand.
[Read More…]
- 10 comments // Permalink // Add to...
Frogs in “Mariposas”
| Pinar del Rio, Cuba | Jul 26, 2009 3:26 |
||
| Fujifilm FinePix S5100 | F=66mm |
||
f/3.1 |
1/40s |
ISO 200 |
![]() |
I found these little frogs napping inside the cone formed by the partialy open tip leaf of the “Mariposa” flower. This was taken during my trip to the National School of Speleology in Pinar del Rio.
Posted with FlatPhoto
- 4 comments // Permalink // Add to...
Frogs in “Mariposas”
| Pinar del Rio, Cuba | Jul 26, 2009 3:22 |
||
| Fujifilm FinePix S5100 | F=66mm |
||
f/3.1 |
1/15s |
ISO 200 |
![]() |
I found these little frogs napping inside the cone formed by the partialy open tip leaf of the “Mariposa” flower. This was taken during my trip to the National School of Speleology in Pinar del Rio.
Posted with FlatPhoto
Back to top