[ansel] Import pictures from folder structure
Michael J Rubinsky
mrubinsk at horde.org
Wed Feb 29 17:05:10 UTC 2012
Quoting Samuel Wolf <samuel_wolf at web.de>:
> What is wrong there?
>
> Schwerer Fehler:
> Unbekannter Dateityp "/tmp/albums/kollegen/P1010028.JPG" kann nicht
> verarbeitet werden.
>
> 1. Ansel_Cli_Helper_Local->processDirectory() /usr/bin/ansel:164
> 2. Ansel_Cli_Helper_Local->processDirectory() /usr/bin/ansel:640
> 3. Ansel_Cli_Helper_Local->processDirectory() /usr/bin/ansel:640
> 4. Ansel::getImageFromFile() /usr/bin/ansel:621
>
> ====================
> root at mail:/tmp# file /tmp/albums/kollegen/P1010028.JPG
> /tmp/albums/kollegen/P1010028.JPG: JPEG image data, EXIF standard 2.1
>
For some reason Horde_Mime_Magic doesn't think it's an image. You will
have to track this down in ansel/lib/Ansel.php. In the
getImageFromFile() method, add:
<code>
var_dump($mime_type);
</code>
after line 438, on the line before the if statement and post the
results for that image.
--
mike
The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6096 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.horde.org/archives/ansel/attachments/20120229/653feca5/attachment.bin>
More information about the ansel
mailing list