Picture sizing and 'thumbnails' for Web Reports
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



Picture sizing and 'thumbnails' for Web Reports Expand / Collapse
Author
Message
Post #18499 Posted 7/13/2007 11:39:34 AM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 6:30:53 PM
GenoPro Version: 2.0.1.6
Posts: 1,151, Visits: 5,401
The current Narrative Report skin leaves picture formats unchanged. This can impose heavy overheads if users have used photos straight from their camera or scanner without resizing them to make them more suitable for web usage. The skin does have a facility for a type of thumbnail, but it is difficult to use, particularly on familytrees.genopro.com.

I have therefore produced a utility, in the form of a GenoPro Report Generator skin, that assists with the generation of suitable images. It uses that marvelous imaging application, IrfanView, to carry out the resizing required. The user must install version 4 or higher version of that application before using this utility.

Normally two image sizes are required for the Narrative Report. the 'thumbnail' images are those embedded on the pages and by default are 250x250 pixels. Smaller 100x100 images are also displayed in a Report, but the 250x250 images will be suitable for both purposes. In addition to the 'thumbnails' standard size images are required so that when a user clicks on the smaller 'thumbnails', a larger version is displayed.

The attached skin can be used to produce these image files. It will access all pictures referenced in a GenoPro file and call Irfanview to produce resized images in a folder specified by the user. The size of the 'standard' images is limited by the utility and by default is set to 1024x768 pixels maximum but this and other details can be changed. In order to include these in a Narrative Report the user should use the GenoPro Tools, Relink Pictures option to change picture references to the new folder. This can be on a temporary basis, you can revert to the original picture locations after generating the Report by either not saving the amended .gno file or by using GenoPro's Edit, Undo feature. However I suggest you back up your GenoPro file, and pictures if you use the 'overwrite' option, before using this utility.

You can produce the 'thumbnails' at the same time as the resized main pictures, storing them in a specified folder. To use the thumbnails in a Narrative Report, first generate the Report with the 'Use Thumbnails' Config Parameter to Y and then copy the thumbnails generated by this utility to the 'thumbnails' folder of the Report. If the Report is on familytrees.genopro.com, you will need to use the GenoPro FTP client. If however it resides on some other Web site then any FTP client should be suitable to copy the files.

To install the utility, unpack the files in the attached zip file into a new folder, e.g called 'picture resize', below your GenoPro skins folder. (See under the Options tab of  GenoPro's Tools, Generate Report dialog to determine the location of your GenoPro skins folder). When you next select  Tools, Generate Report you should see the 'picture resize' option in the list of skins.

You should find that Reports with the resized 'standard' pictures upload much more quickly, and accessing the Report, especially if thumbnails are used is also much faster.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


  Post Attachments 
Picture Resize.zip (10 views, 7.82 KB)
Post #18500 Posted 7/13/2007 11:49:51 AM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Yesterday @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523, Visits: 14,875
Just a note, we will work to support picture thumbnails within GenoPro.  Our priority at the moment is finishing the translation (localization).  There are still hundred of pieces of text to translate.  I estimate the translation work to be complete by the end of July.

Post #18506 Posted 7/13/2007 9:46:44 PM


IT Director GenoPro

IT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoPro  

Group: Customers
Last Login: 2 days ago @ 8:27:51 AM
GenoPro Version: 2.0.1.6
Posts: 457, Visits: 5,964
Another approach would be to resize the file (.jpg only) server side. I'm not sure what would be the consequence of the report if the file online do not have the exact size as those written in the report, maybe Ron you know what part of the report would be affected?

The resize could be done directly when the file is uploaded for instance.

Thise could be quick fix until GenoPro do handle the thumbnail, but the file collaboration between multiple users is our next priority.


If the facts don't fit the theory, change the facts.
-- Albert Einstein

Jean-Claude Morin
Information Technology Director, GenoPro.
http://www.genopro.com

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:34 AM

Copyright 1998-2008 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.