Page 1 of 1
Real thumbnail
Posted: 29 Oct 2008, 12:35
by lucky_strike
Hi,
Iike to use real thumbnails with (for example) 100x100px...
unfortunatly the thumbs are cutted to the space of the background
<div class="document" style="background: url('/images/phocadownload/pdf-test.png') 0 center no-repeat;">
Where could I change that in the layout-code?
I need those big thumbs, because I like to upload zip-sets of pictures in a high resolution qualitiy (TIF with layers, vector-path etc). But there is no webgallery that supports those tif-files....
thanks!
Re: Real thumbnail
Posted: 30 Oct 2008, 00:50
by Jan
Hi, I don't understand, if you set 100x100, such thumbnails will be made (use crop for the thumbnails)... if you will not use the crop (parameter in global configuration) then the thumbnails will be made with some space (e.g. because of portrait or landscape ... from 1024 x 768 image 100 x 100 thumbnails cannot be created without cropping, if you will not use the cropping then 100 x 75 will be created...)
Jan
Re: Real thumbnail
Posted: 30 Nov 2008, 14:28
by akerman
Hi Jan,
I think this is a bit unclear. Reading your FAQ on this made it a bit more clear, but not enough I think.
You refer above to some "Global Setting" I can't seem to find such setting.
What I do see is the following:
1. You have to resize the thumbnails yourself before uploading them. No resizing is performed.
So, if you decide for a thumbnail and set it to 193x204px, well that's the size it will use.
I even tried with 1024x1200px - even that is displayed correctly!?
2. Easiest way to add thumbnails is to:
- Collect them in a folder locally. Resize them with a tool that can
do this in a batch process (Photoshop or gThumb Image Viewer - depends on your platform)
- Upload them via FTP or via any J! extension that handles files into "/images/phocadownload/.."
3. Now Go to your file in backend and add the thumbnail as an icon as specified in the FAQ below
FAQ:
If you want to display larger image above the file name, your image needs to contain the following string in its name:
* phocathumbnail e.g. (phocathumbnail-biavo.png)
You will select the image the same way as icon. If the selected image (icon) will contain the phocathumbnail string, then the image will be not displayed next to file name but above this name. The standard icon will be displayed next to file name. E.g. the phocathumbnail-biavo.png will be displayed above the file name:
(Jan, tell me if I'm wrong about the resizing or this approach...

)
Regards
Akerman
Re: Real thumbnail
Posted: 02 Dec 2008, 15:47
by Jan
MISUNDERSTANDING:
Hi, I don't understand, if you set 100x100, such thumbnails will be made (use crop for the thumbnails)... if you will not use the crop (parameter in global configuration) then the thumbnails will be made with some space (e.g. because of portrait or landscape ... from 1024 x 768 image 100 x 100 thumbnails cannot be created without cropping, if you will not use the cropping then 100 x 75 will be created...)
I thought we spoke about Phoca Gallery ... Sometimes I overlook the main heading (because of time pressure)
Phoca Download doesn't have any resizing... the icon 16x16 will be used but if you want to use some other image, e.g. templates images on this site (
https://www.phoca.cz/documentation/index ... -templates)
you need to call the icon with 'phocathumbnail' string so the system knows this icon is not small and will be not displayed next the the name but above the name... so you right, if you speak about resizing in e.g. photoshop... Phoca Download doesn't have any resizing tool...
Jan
Re: Real thumbnail
Posted: 02 Dec 2008, 23:10
by akerman
Hi,
you are of course excused!
We don't expect you to be dead on, every time.
And it's good that we sorted that out:
No resizing in Phoca Download.
Thanx Jan!
Regards
Akerman
Re: Real thumbnail
Posted: 03 Dec 2008, 15:14
by Jan
Re: Real thumbnail
Posted: 17 Nov 2009, 00:20
by Jan
Hi, you can change it in code - template of Phoca Download:
e.g. components/com_phocadownload/views/category/tmpl/default.php
Jan
Re: Real thumbnail
Posted: 17 Nov 2009, 04:06
by codejunkie
And for future revisions to Phoca Download, you may want to look at making a
Template Override. It will reduce the chance of losing all of your customization when a new version is released.