Image processing

bertholdo

New member
Hi everybody,

is there already a possibility to create thumbnails on the fly for images I upload with dadabik?
And then to display the thumbnail images in the list and details view?

I have played arround with this one:
http://www.dadabik.org/forum/read.php?1,4966,10867#msg-10867
but I only get copies of the files renamed, image processing of the size doesn't work for me.

Thanks!
 

bertholdo

New member
TimThumb is really handy, and works perfectly easy. In the list and detail view I have now a thumbnail of the image I uploaded. When I click on the image I get the image in full size.
This it how it works:

- I added a folder timthumb in the includes folder
- then copied the file timthumb.php in the folder timthumb. The file you get here: http://timthumb.googlecode.com/svn/trunk/timthumb.php
- next I added a folder temp and a folder cache in the timthumb folder. Rigths for both folders 775
- then I modified the image displaying in the file /include/business_logic.php as below. I added the whole code of the part "case "image_file"" but only modified the marked line "$field_to_display". (In version 4.3 RC2 in line 2765)

Have fun, its great!
Thanks again tegaDesignor for the hint.

More information about the configuration of the thumb creation you find here:
http://www.binarymoon.co.uk/demo/timthumb-basic/

[pre]
case "image_file":
$field_value = htmlspecialchars($field_value);
if ( $field_value != '') {
if ($display_mode === 'plain_text') {
$field_to_display = $field_value;
} // end if
else {
$field_to_display = "<a href=\"".$upload_relative_url.$field_value."\" target=\"_blank\"><img src=\"/include/timthumb/timthumb.php?src=/uploads/$field_value&w=100&zc=1&q=80\" alt=\"\" /></a>"; // Modified line
} // end else
}
break;
[/pre]
 
Top