You are not logged in.
I’ve needed a way to import some images into Textpattern, especially when adding more than one image the textpattern admin interface is not the best. So i found a plugin called aba_import_image, but i ran in some problems regarding double imports, and it really wasn’t so nice to use, meaning it had no interface at all. So i took it apart, reassembled it, added some stuff, and here we go.
Behold fpx_image_import. This plugin does the same as aba_import_image, but you can select which files you want to import, and the imported files are not deleted anymore since this isn’t necessary. The list of files and folders is displayed below the image list in the textpattern admin interface. By selecting the “import” checkbox you can select which one you want to import. Please note that the plugin does not check (and in fact is completely unable to) if an image was already imported, so be careful when importing. If you select a folder, all the files in the folder are imported to a category with the name of the folder. If this category does not exist, it will be created.
I also added a preferences page for the settings which control the import of the images, the creation of the thumbnails, and so on. You can find the preference page in a new tab called “image import” under the “extensions” tab. This solution isn’t optimal, since you don’t see the settings when importing and can’t change them on the same page, but the inner workings of textpattern and its plugins prevented a better solution.
I hope it works for you, i’ve tested it with Textpattern 4.0.2 and 4.0.3.
Update 03/16/2008: Updated the plugin to version 0.4 because of Textpattern 4.0.6, added missing add_privs call. Should work fine under txp 4.0.6 now (not tested by me, i’m still on 4.0.5).
Last edited by Flashpix (2008-03-16 16:35:29)
Wow! Just what I need… and longed for. Will give it a serious try right away!
-It is sooo good! Works like a clock and you´ve really thought about the features I can tell (like size of thumbnail, alt-text from file name and so on)
Last edited by skoggy (2006-04-21 07:54:35)
Silly question but how to I browse to the folder/file to be imported?
lee, i hope i understand what you mean. Browsing is not supported, you have to create a folder “import” under your normal images folder. The images folder is configured under advanced settings in the settings tab.
The default for this is “images”, and it is normally located at the root level of your blog. In this folder the above mentioned import folder must be created, if the plugin can not create it itself.
You can call the plugin by selecting Images from the Content tab. Below the list of existing images in your blog the list of files and folders to import should be shown, as can be seen in the screenshots i have on my blog article about the plugin. Sorry, the screenshots are with german language since i have to use this for some date related stuff.
Got it now. Cheers.
skoggy, the nice features you mentioned were already in aba_image_import, so i have to forward your applause to the other authors before me. But nice to hear anyway that you like it.
What i think about improving is the support for pre-built thumbnails which is currently limited to filenames like thumb-[picture], this is not one of my preferred solutions. Maybe i’ll add something there, a configuration, or a thumbnail subdir reader.