Google Answers Logo
View Question
 
Q: Script to Read and Display, Without Distortion, Cropped Pictures of Any Size . ( No Answer,   3 Comments )
Question  
Subject: Script to Read and Display, Without Distortion, Cropped Pictures of Any Size .
Category: Computers
Asked by: bizuth-ga
List Price: $20.00
Posted: 08 Sep 2006 16:09 PDT
Expires: 13 Sep 2006 18:49 PDT
Question ID: 763513
I am currently using an inhouse HTML slide-show program originally
designed to read jpg pictures in a landscape format from a file folder
and to display them in 3 different fixed sizes (small, medium and
large). This personal program has several educational features that
fit my children needs better than commercially available slide-show
software.

The only problem is when the pictures are either cropped or taken in
portait format, distortion occurs to fully fit both the fixed height
and width specified in each format (small, medium and large). Photos
not captured in a landscape mode are frequently badly streched
horizontally.

I am only seeking a script (Java or other) to read any size pictures
from a folder, dynamically calculate the output dimensions and display
the result while maintaining picture-integrity ratios. Note that the
available display space is in landscape mode to fit laptop screens.
Thus pictures in portrait mode would fit the height, but use less than
the available width. Likewise, cropped pictures with odd sizes would
be adjusted accordingly to retain integrity ratio.

Please specify open-source scripts or freeware I may embed into the
program. Alternatively, you are also most welcome to provide the
source routine, if you have one.

Your assistance is highly appreciated as I have two primary school
children waiting to show their summer holiday projects to their
friends and classmates.

Clarification of Question by bizuth-ga on 13 Sep 2006 18:48 PDT
I thank the three of you for your generous time and constructive
comments. We managed to produce and encapsulate into the original
prigram a very short Java script that meets our expectations. No need
for further research. I will withdraw the question.
All the best,
Answer  
There is no answer at this time.

Comments  
Subject: Re: Script to Read and Display, Without Distortion, Cropped Pictures of Any Size .
From: darek1-ga on 09 Sep 2006 08:15 PDT
 
Irfan View should do what you want http://www.irfanview.com/
Subject: Re: Script to Read and Display, Without Distortion, Cropped Pictures of Any Size .
From: fractaloid-ga on 09 Sep 2006 20:53 PDT
 
Caution: "Add All" image-transfer function in Irfan is still flawed. I
did not find the program user friendly, despite my extensive
experience in image processing . Sorry!
Subject: Re: Script to Read and Display, Without Distortion, Cropped Pictures of Any Size
From: rakesh_arky_ambati-ga on 13 Sep 2006 06:30 PDT
 
I strongly suggest using Imagemagick http://www.imagemagick.org/ which
commonly available on most gnu/Linux distros and windows as well.

I power of this tool is well explain in the recent book by PackIt
http://www.packtpub.com/imagemagick/book
http://www.flaxstor.com/blog/2006/08/28/imagemagick-tricks-web-image-effects-from-the-command-line-and-php/
http://www.flaxstor.com/blog/2006/06/15/the-definitive-guide-to-imagemagick-definitive-guide/

HTH

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy