Automatic scanning for images in dir

Creating and modifying plugins.
Post Reply
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Automatic scanning for images in dir

Post by MySchizoBuddy »

Is there a plugin or way so that it automcatically scan my images folder and add all the pictures to my library for easy drag and drop in my posts
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Automatic scanning for images in dir

Post by garvinhicking »

No plugin needed for that. Just put the files up via FTP into your upload/ folder and click on the "Rebuild Thumbnails" icon. Then all new images are imported in your media library.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

I;m getting bunch of error

Code: Select all

Warning: imagecreatefrompng(): '/kunden/homepages/30/d94057558/htdocs/www/blog/uploads/serendipityVSwordpress/serendipity-plugin-event-repository.png' is not a valid PNG file in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 820

Warning: imagesx(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 821

Warning: imagesy(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 822

Warning: imagecreatetruecolor(): Invalid image dimensions in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 830

Warning: imagealphablending(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 834

Warning: imagesavealpha(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 835

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 838

Warning: imagepng(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 839
Resize serendipityVSwordpress/serendipity-plugin-event-repository.png: x

Wanted to use serendipityVSwordpress/serendipity-plugin-event-repository.png as its own thumbnail, but failed to copy!

Warning: imagecreatefrompng(): '/kunden/homepages/30/d94057558/htdocs/www/blog/uploads/serendipityVSwordpress/serendipity-medialibrary.png' is not a valid PNG file in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 820

Warning: imagesx(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 821

Warning: imagesy(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 822

Warning: imagecreatetruecolor(): Invalid image dimensions in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 830

Warning: imagealphablending(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 834

Warning: imagesavealpha(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 835

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 838

Warning: imagepng(): supplied argument is not a valid Image resource in /homepages/30/d94057558/htdocs/www/blog/include/functions_images.inc.php on line 839
Resize serendipityVSwordpress/serendipity-medialibrary.png: x

Wanted to use serendipityVSwordpress/serendipity-medialibrary.png as its own thumbnail, but failed to copy!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

PHP complains that your PNG file is not a valid image file. Where can I see that image so that I can check it?

Please also make sure your *.png files are readable for the webserver, and that the upload path is read/writable as well...

Are you using 0.8.2 or 0.9?

Regars,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

i'm using 0.8.2
and the images directory is readable.
looks like only 2 failed out of 60 images i had. So i'll check those 2 again

so u should open up the png file from my browser and see if it displays, If it does then fine right.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If you give me the URL, I could try that. :-)

But I think this all speaks for the fact that the PNG file is not a PNG file or is damaged.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply