Discussion
Picutre size(back to index)Hi,
are there any functions in folderblog 3 oder 2.02 to resize all uploaded pics to the same size, if you look at this page, you´ll see what i mean.
http://www.jonda.net/folderblog/
just click on a snow pic.
If you're using
Jowra's 'Relaxation' Folderblog 2.02 template then you're probably better off just resizing the images to 580x400 before you upload them, as the template is a fixed width.
I'm not sure if the other templates are fluid and able to expand to fit large images, but an option for Folderblog 3 to resize the images automatically when posted (in the same way as the thumbnail's width can be set), would be a nice idea. Perhaps this is something that could be done with an extension?
posted by
Elwing on 22 Jun 05 at 9:35 AM
so there is no script, which can do it for me, and i have to resize every picture? wow sounds much work is waiting for me. :-)
Elwing, I'm using 600x400 mainly. ;-) But an extension which resizes the image would be great!
Und Flo(rian?): Freut mich, daß Du Dich für mein WordPress-Theme entschieden hast. =)
posted by
jowra on 22 Jun 05 at 9:54 AM
das wäre sicher nicht schwierig zu programmieren...
ich habe die bilder in acdsee verkleinert. da kannst du alle anwählen und eine funktion auswählen, die alle bilder auf einmal verkleinert und unter neuem namen abspeichert. ziemlich praktisch...
posted by
nick on 22 Jun 05 at 10:00 AM
I resize every picture, since most of my pics are somewhat enhanced with photoshop. But at least there should be some php-scripts that will resize an image, question is: how could that be integrated in folderblog?
Otherwise, if you just want to upload a bunch of pics right out of your camera, you could resize them with the batch-mode of an image-software, e.g. http://www.irfanview.com The 600px of my theme is fixed width, as Elwing mentioned, but that height could be almost anything...
posted by
jowra on 22 Jun 05 at 10:01 AM
Oh man i just downloaded irfanview, but a function to select all pics in aa folder - no chance or i am just blind?!?
@ Jowra: hab dir schon ne Mail geschrieben, weil ich auch noch ein problem mit der darstellung der thumbnails habe. kannst du mir nen tipp geben, wie ich das beheben könnte? es wird nur ein schwarzer strich angezeigt. Danke noch für dein Theme. find ich es cool.
Einfach IrfanView starten und B drücken. ;-) Datei -> Batchkonvertierung. Schau mal hier:
http://www.lehrerfortbildung-bw.de/werkstatt/anleitung/bild/irfanview/menues/05_datei/08_stapelbearb/10_menue3_batch2convert.htm
zum Rest später mehr, ich bin erst mal off.
posted by
jowra on 22 Jun 05 at 10:22 AM
I set the picture sizes to 580x400 so they support
FotoBuzz when using Jowra's template, which adds a little frame round each picture. The 580x400 size ensures it the pictures will fit, no matter what you're doing! ;-)
posted by
Elwing on 22 Jun 05 at 10:52 AM
While PHP with GD supports image resizing (i.e. if you can generate thumbs, you can resize images), uploading a 3 or 5 megapixel file and asking PHP to do the gruntwork of resizing it will timeout on many (most?) servers, unfortunately.
posted by
donald on 22 Jun 05 at 4:52 PM
I was tinkering with this notion of an extension or some kind of plugin (like fb_captcha.php), with the idea of outputting the JPG image to the browser on the fly, rather than save it on the server or deal with it while trying to upload it. The idea was to write a little function that would read the image saved on the server, resize it and just display it, with something like this:
list($width, $height) = getimagesize($imgfile);
$newwidth = $width * $percent;
$newheight = $height * $percent;
$thumb = imagecreatetruecolor($newwidth,$newheight);
$source = imagecreatefromjpeg($imgfile);
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
imagejpeg($thumb);
I ran into two problems. First, I couldn't get fb3b to send the image filename to any function that I messed about with. Second, it doesn't seem to be a very x-browser way to do things, as it displays the JPG as raw data (even when adding "header('Content-type: image/jpeg');" to the above code).
My brain was melting after a few hours of this, so I left it. But you never know, some boffin might be able to pull this idea off. If I ever get it work (assuming it's even possible!), I'll let you folks know.
posted by
Elwing on 22 Jun 05 at 8:59 PM
Florian, ich habe meine Mails gecheckt, aber es war nichts von Dir dabei? :confused: Wie auch immer, Du hast nur meinen Templatefolder installiert, oder? Das reicht aber nicht, Du mußt vorher das originale Folderblog-Paket hier von Donalds Seite downloaden und meine Dateien dann nur darüber kopieren. Dann ist nämlich im Folderblog-Verzeichnis eine Datei post.php vorhanden mit der Du Anmerkungen zu den Bildern schreiben kannst und auch die thumbnails erzeugen kannst. Der Aufruf erfolgt dann einfach mit ../post.php statt ../index.php. Für diese Änderungen benötigst Du ein Passwort, welches Du in der Datei vars.php definierst.
Das war hoffentlich verständlich, ansonsten versuchs mal noch mal mit einer Mail. ;-)
Gruß,
John
posted by
jowra on 23 Jun 05 at 3:17 AM
Hi John,
ich habe das fb3 jezt installiert. jetzt gleich mal ne frage an dich: hast du vielleicht schon die template dateien für fb3 angepasst bzw. kannst du sie irgendwo zum download anbieten. ich hab da ein bisschen rumprobiert, aber ich bekam meist nur fehlermeldungen.
gruß
florian
posted by
florian on 23 Jun 05 at 6:53 AM
Ja, fiel mir dann gestern auch so ein, dass es ja Zeit wird, das an fb3 anzupassen. Momentan entwickle ich gerade für mich ein ganz neues Theme für die 3er Version, insofern kann es mit dem Relaxation-Theme noch ein paar Tage dauern, da doch – wie Du schon schreibst – einige Dinge neu sind und die Umstellung nicht ganz so schnell geht.
Ich hoffe Du kannst noch ein kleines bisschen warten. ;-)
posted by
jowra on 23 Jun 05 at 7:34 AM
@jowra:
du bist der gott!
I was trying and trying and trying
--->see thread 'alternative templates'
I would be very grateful to use and modify your theme as well once it is available for download. (please, say it will be......)
:-))
posted by
armin on 23 Jun 05 at 8:18 AM
Post a Reply:
(back to index)