Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: nhn_image_import: multiple image import
> blumie607 wrote:
<blockquote>I really should start looking into automator. I just had a project/have a project that could be made much easier probably w/automator.
</blockquote>
What is automator?
Proud Canadian. Toronto Locksmith , Actualize Consulting
Offline
Re: nhn_image_import: multiple image import
For your information: This plugin has been taken over by aba (thank you!) and as he told me via email, there will be soon a new release.
Nils
Offline
#33 2005-09-08 14:02:11
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: nhn_image_import: multiple image import
I wonder whether Nils would still recognize his plugin…
I rewrote the nhn_image_import but unfortunately it does much more than I need so I miss some testing of features I’m not very interested in: This results in:
beta testers wanted
you should have some basic understanding of textpattern and file permissions (that’s still a problem for the plugin) and you should be willing to sacrifice your images to the plugin (read: it should not be used in a production system! – you have been warned). You also need to have a plugin cache directory to drop the php in because I didn’t compile a plugin yet (I need to write the documentation first).
It is still not finished and there is a good chance that it either doesn’t work or burn your house and kill your pets. Hopefully I have a version ready for the weekend (aspect ratio needs to be done first) that does the following:
all features can be globally enabled/disabled
- automatic thumbnail generation unless thumb-imagename.ext is present (then this is used as thumbnail)
- you may have a small looking glass in plugins (the class used by txp is quite powerful)
- get caption either from exif comment or iptc comment
- use filename (minus extension and ‘_’ replaced by spaces) for alt tag
- resize pictures while importing (personally I don’t see why sending large pictures to a server and resize them when importing is something you need/want but someone requested it – because it uses the same thumbnail class there might be drawback though)
please let me know by email if you’re interested to test some code that might not even work.
warning: I’m not a programmer, so there might be some thing a real PHP programmer would kill me for. If you find something like this, let me know.
despite the permissions issue there are two more problems with the plugin:
1. It is not very commucative when errors occur (and I have some problems how to handle them)
2. It often needs a refresh of the image tab after import because I still don’t get it how to import the images and have the up to date image list in the tab (I’m currently considering to implement the plugin in an extensions tab to get rid of these problems – opinions are welcome).
gerhard: sorry, but this plugin is using the internal image functions so there is no chance for your request to scrap filenames solely based on id.
Offline
Re: nhn_image_import: multiple image import
An extensions tab would be considerably helpful. But quite the task ;P I’ll gladly test it out… I have a couple of different servers and domains that I can ‘ruin’ ;)
Proud Canadian. Toronto Locksmith , Actualize Consulting
Offline
Re: nhn_image_import: multiple image import
“automatic thumbnail generation unless thumb-imagename.ext is present (then this is used as thumbnail)”
Does this mean thumbs won’t be named [imagename]t.[ext] anymore?
Offline
#36 2005-09-16 07:09:48
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: nhn_image_import: multiple image import
> Anton wrote:
> “automatic thumbnail generation unless thumb-imagename.ext is present (then this is used as thumbnail)”
> Does this mean thumbs won’t be named [imagename]t.[ext] anymore?
No, it means if you have a image [imagename].[ext] it will be used to generate a thumbnail [id]t.[ext] and the image [id].[ext] unless you have thumb-[imagename].[ext] – if so this is copied to [id]t.[ext]
the image importer doesn’t change anything in the internal image handling functions it just makes importing more than one image easier.
Offline
Re: nhn_image_import: multiple image import
ah, great :) i guess i misunderstood the imagename vs id thing there ;)
btw, how far from a non-beta are you now? any risks in taking this to a production site soonish?
Offline
#38 2005-09-16 07:59:40
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: nhn_image_import: multiple image import
There is only one problem left: under some circumstances it will import every image two times.
I still don’t know why because I can’t reproduce this problem (happened to me only one time) and I’m waiting for a report from dejan after I plastered the whole plugin with beta code.
Apart from that there are some checks missing but nothing that will hinder the plugin from working (they are only meant to stop error messages under some circumstances like that gd doesn’t have gif support included).
I’ll check the code tonight (late shift has its advantages) and will post a public version at the weekend (hopefully with a fix for the doubling problem). I can’t guarantee that it will work without any error but it seems stable enough to try it.
Offline
Re: nhn_image_import: multiple image import
Heya,
Whatever happened to this? Did you get it working?
Proud Canadian. Toronto Locksmith , Actualize Consulting
Offline
Re: nhn_image_import: multiple image import
aba: could it be due to permissions of the import folder not being 777?
Offline
#41 2005-11-14 00:28:17
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: nhn_image_import: multiple image import
I appreciate every attempt to help, but this thread should not be used because the plugin matured quite nicely and got an own thread
The correct thread is: http://forum.textpattern.com/viewtopic.php?id=11428
unfortunately the double import error is still present and I am still unable to reproduce it. There is a user using windows (rendering the permission approach a bit offroad) who sees this problem whenever he’s in the same session. The current version tries to check whether the import directory is writable (or better, the images are deleteable) and some other things triggering the damned windows as well (I didn’t use unix permissions whenever possible but it seems the checks for readable and writable in php have funny results in windows)
Offline