[ansel] Import pictures from folder structure

Samuel Wolf samuel_wolf at web.de
Wed Mar 14 16:48:12 UTC 2012


-----Ursprüngliche Nachricht-----
Von: "Michael J Rubinsky" <mrubinsk at horde.org>
Gesendet: 29.02.2012 18:05:10
An: ansel at lists.horde.org
Betreff: Re: [ansel] Import pictures from folder structure

>
>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.

Same with "var_dump($mime_type);" before "$image =":

root at mail:/tmp# ansel -u x -p x import -d kollegen/
[   OK   ] Logged in successfully as "x".
[  INFO  ] Creating gallery: "kollegen"
[   OK   ] Die Galerie "kollegen" wurde erfolgreich erstellt.
 
====================
 
Schwerer Fehler:
Unbekannter Dateityp "kollegen/P1010028.JPG" kann nicht verarbeitet werden.
 
1. Ansel_Cli_Helper_Local->processDirectory() /usr/bin/ansel:164
2. Ansel::getImageFromFile() /usr/bin/ansel:621
 
====================
root at mail:/tmp#

Restart Apache because I use the APC cache, but there is no more output.

Samuel
>
>
>--
>mike
>
>The Horde Project (www.horde.org)
>mrubinsk at horde.org


___________________________________________________________
Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.
https://produkte.web.de/freemail_mobile_startseite/


More information about the ansel mailing list