Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: aba_import_images (formerly nhn_import_images)
Nope, same thing (Jérémie truncated into J). But if you can use umlaut, it’s very strange indeed. Maybe it’s OS related (my file was created and ftp with Win32, the server is FreeBSD 5.4 with the appropriate locales I believeà.
But I done some more testing, and my previous HTTP500 errors were not caused by your code (it seems the PHP module and/or Textdrive doesn’t like at all resizing 20 or 30 images when they are in medium resolution —200 or 300dpi. To say nothing of a hundred :p).
Last edited by Jeremie (2005-12-21 23:25:33)
Offline
Re: aba_import_images (formerly nhn_import_images)
Ok, either I’m under heavy scrutiny by Murphy, or I need a new brain.
But whatever. I’ve done some more testing, the utf8_encode on the $name2bd works for me. I will try some more complex glyphs, but it seems to do the trick.
I have used it on the $alt = $imagename line too (without it the alt is also truncated).
Last edited by Jeremie (2005-12-22 00:17:55)
Offline
#48 2005-12-22 01:30:23
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: aba_import_images (formerly nhn_import_images)
For the resizing timeout: This is covered in the docs… ;)
Unfortunately I haven’t found a good was to get rid of it – I wanted to rewrite the plugin to use some sophisticated javascript (like ajax) to open a new session for every bunch of images but I got distracted by learning ruby and even with this the server load might be a bit hefty. I implemented it because someone asked for it but it’s not for everyone, I’m afraid.
For the truncating: I settled for changing the
$imagename = substr($filename, 0, strrpos($filename, ‘.’));
line to
$imagename = utf8_encode(substr($filename, 0, strrpos($filename, ‘.’)));
That should cover it all. Thanks for verifying it for me. An updated plugin is available. I already got rid of the excessive debugging code and I will get rid of the excessive checking as well because it seems that it does no good giving false error messages and not helping to find other errors.
Last edited by aba (2005-12-22 01:42:00)
Offline
Re: aba_import_images (formerly nhn_import_images)
Hi, I just installed the latest version .044. It does not work for me now. I have tried uploading one image only – folder is 777.
Re-size of the image is turned on. I wait a while as per the instructions and get this message when I go to the images page:
“There was a problem reading image info. Check the image file or the permissions aba_import_images imported 1 images”
But it does not import. I will try it again with re-size of the image turned off.
Edit: It does not work either with re-sizing turned off. Previously, I got the same error message but the images were imported correctly.
Last edited by jstubbs (2005-12-23 18:06:55)
Offline
#50 2005-12-30 03:32:32
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: aba_import_images (formerly nhn_import_images)
Ditto ditto.
I am getting the same error message with no import:
“There was a problem reading the image info. Check the image file or the permissions aba_import_images imported 1 images”
Using 0.4.4
:)
SH
Offline
Re: aba_import_images (formerly nhn_import_images)
Ah, I’m glad i’m not crazy ! I got the same one, the permission thing (doesn’t matter), the “x images imported” but none are. Since it worked (I think) for me once, and since I did revert to previous version code (or at least I thought I did), and since I did some manual SQL queries just before that, I assumed it was on me and didn’t reported it.
I tried a lot of things, couldn’t find what was the error, or what change trigger it.
Offline
#52 2006-01-04 10:47:33
- alexwest
- Member
- From: Järna, Sweden
- Registered: 2004-08-04
- Posts: 53
Re: aba_import_images (formerly nhn_import_images)
Latest version (0.4.4) of this plugin not working for me either. I am using TXP 4.0.2
be safe and happy
Offline
#53 2006-01-04 14:31:00
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: aba_import_images (formerly nhn_import_images)
Didn´t work either for me with 4.0.3., getting only that “problem reading image” message.
But here´s temporary easy way out, old version, nhn_image_import 0.1 works. Since many (not meaning this one but many) plugin download urls come and go, I´ve learned to save the old ones too :D
Offline
Re: aba_import_images (formerly nhn_import_images)
Same “problem reading image” message here on Txp 4.0.3
Offline
Re: aba_import_images (formerly nhn_import_images)
I also get this message :(
Would be a very helpful plugin!
Offline
#56 2006-01-11 16:57:20
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: aba_import_images (formerly nhn_import_images)
sorry for not answering, but I’m on late shift (usually resulting in an awkward sleep schedule) – not using textpattern at the moment is a show stopper as well – hopefully I’ll be able to check it out at the weekend and correct the bug. Thanks for the patience.
Last edited by aba (2006-01-11 17:02:49)
Offline
Re: aba_import_images (formerly nhn_import_images)
Could this plugin be easily adapted to add rounded corners (or other custom elements set by the user) to thumbnails or full-size images in much the same way that the thumbHints are added?
That capability would make the plugin worth it’s weight in gold (or cheese).
Offline
#58 2006-01-15 01:05:58
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: aba_import_images (formerly nhn_import_images)
> mrdale wrote:
> Could this plugin be easily adapted to add rounded corners (or other custom elements set by the user) to thumbnails or full-size images in much the same way that the thumbHints are added?
no (for the “easily adapted” part). The reason is that the used thumbnailing library that is bundled with textpattern already supports the thumbhint but nothing you seem to need.
> That capability would make the plugin worth it’s weight in gold (or cheese).
explain to me what you have in mind and I’ll look into it – examples to look at or a program that already does something like that would be helpful.
Offline
Re: aba_import_images (formerly nhn_import_images)
Ok, guess I’d better explain better.
There are times when I’d like to add a custom image element to a whole series of images. Without trying out the ‘hint’ icon option in this plugin, I assumed that it simply made an image that layered an icon image over the original image to create a thumbnail. So I thought, that it would be cooler still to be able to select a custom icon image, and then apply it to both or either, the thumbnail or the large image.
Make sense?
Offline