WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// Make array of all item thumbs and images if (file_exists($thumb_dir.$thumb_file) && file_exists($img_dir.$image_file)) { // If needed add lightbox2 link to the thumb/image... if ($setting_lightbox2 == 'overview' || $setting_lightbox2 == 'all') { $thumb_prepend = '<a href="'.$img_url.$image_file.'" data-lightbox="lightbox[image_'.$item_id.']" title="'.$img_title.'"><img src="'; $img_prepend = '<a href="'.$img_url.$image_file.'" data-lightbox="lightbox[image_'.$item_id.']" title="'.$img_title.'"><img src="'; $thumb_append = '" alt="'.$img_alt.'" title="'.$img_title.'" class="mod_'.$mod_name.'_main_thumb_f" /></a>'; $img_append = '" alt="'.$img_alt.'" title="'.$img_title.'" class="mod_'.$mod_name.'_main_img_f" /></a>'; // ...else add thumb/image only } else { // Add link to detail pages if ($view_detail_pages) { $thumb_prepend = '<a href="'.$item_link.'"><img src="'; $thumb_append = '" alt="'.$img_alt.'" title="'.$img_title.'" class="mod_'.$mod_name.'_main_thumb_f" /></a>'; // No detail pages therefor no link needed } else { $thumb_prepend = '<img src="'; $thumb_append = '" alt="'.$img_alt.'" title="'.$img_title.'" class="mod_'.$mod_name.'_main_thumb_f" />'; } $img_prepend = '<img src="/slir/w640-h460-c640x460'; $img_append = '" alt="'.$img_alt.'" title="'.$img_title.'" class="mod_'.$mod_name.'_main_img_f" />'; } // Make array $thumb_arr[] = $thumb_prepend.$thumb_url.$thumb_file.$thumb_append; $image_arr[] = $img_prepend.$img_url.$image_file.$img_append;
I see in framework/media/inc/PhpThumbFactory that Imagick can be used to do this. How would I implement this? Do I need to call the framework somewhere?
this one https://github.com/sprain/class.Images.php