Real thumbnail

Phoca Download - download manager
lucky_strike
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 07 Oct 2008, 11:53

Real thumbnail

Post 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? :idea:

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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Real thumbnail

Post 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
If you find Phoca extensions useful, please support the project
User avatar
akerman
Phoca Member
Phoca Member
Posts: 42
Joined: 07 Jul 2008, 18:42
Location: Sweden - Stockholm
Contact:

Re: Real thumbnail

Post 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... :wink: )

Regards
Akerman
http://www.AkermansCove.com - CMS Addons! & Royalty Free Images
http://www.InfoClip.se - Swedish site for Practical knowledge.
Ubuntu LAMP / Joomla 1.5.8 / VM 1.1.2 Stable / JoomFish / Mosets Tree
/ Joomsuite / Phoca / JoomGallery /
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Real thumbnail

Post 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) :oops:

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
If you find Phoca extensions useful, please support the project
User avatar
akerman
Phoca Member
Phoca Member
Posts: 42
Joined: 07 Jul 2008, 18:42
Location: Sweden - Stockholm
Contact:

Re: Real thumbnail

Post by akerman »

Hi,

you are of course excused! :D

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
http://www.AkermansCove.com - CMS Addons! & Royalty Free Images
http://www.InfoClip.se - Swedish site for Practical knowledge.
Ubuntu LAMP / Joomla 1.5.8 / VM 1.1.2 Stable / JoomFish / Mosets Tree
/ Joomsuite / Phoca / JoomGallery /
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Real thumbnail

Post by Jan »

:wink:
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Real thumbnail

Post by Jan »

Hi, you can change it in code - template of Phoca Download:

e.g. components/com_phocadownload/views/category/tmpl/default.php

Jan
If you find Phoca extensions useful, please support the project
codejunkie
Phoca Professional
Phoca Professional
Posts: 167
Joined: 11 Apr 2009, 01:30
Contact:

Re: Real thumbnail

Post 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.
Download Phoca Download Menu Module for listing Sections or Categories.
Post Reply