Topic: Image quality

Hi,

I´m not sure if this problems are solved - I didn´t find any appropriate answers...

The shown images in my TiltViewer-Version (I´ve bought the Pro Version) with images loaded from my picasa-Webalbum on http://www.janetzko.biz/bj/tiltviewer/picsfl.php are not the same quality as deposited in picasa-Webalbum. How can I modify this? All images are not bigger than 800px. But they look very unsharp when they´re loaded by tiltviewer in the zoom-option. I found one answer relating to this question. It says: For a smoother gallery experience, add the following line to your embedding code immediately before the fo.write("flashcontent"); line:fo.addParam("quality", "best");

I did so, but nothing changed.

The other question is: in this site picsfl.php I have set fo.addVariable("maxJPGSize","300"); The original size was "640" - but when I change this to 800 like my image-sizes are, they´re shown much smaller. When I set the maxJPGSize to "300" like I did, the image-sizes are shown like I wanted it to. But then the sharpness falls off in quality. This leads then to my first question...

Hope someone can help... Thanks in advance.
bejanet

Re: Image quality

The maxJPGSize should be set to the largest dimension of the largest image in your gallery.
This will ensure that the spacing between images in your galleries is OK. (Otherwise, there may be too much space between images or they could overlap each other).
If, after setting maxJPGSize correctly, you find that your images are too small or too large, you can adjust the zoomedOutDistance configuration option accordingly.

The images you use in your gallery (the images listed in your gallery's XML file) have dimensions of only 288 x 191.
They are currently being enlarged by TiltViewer which accounts for the drop in visual quality.
Try using larger images in your gallery so that they do not need to be upscaled by TiltViewer (or set maxJPGSize to 288 and increase the zoomedInDistance configuration option to prevent TiltViewer from enlarging the images too much when zoomed in).
Images with dimensions of 1024 x 768, for example, should be more than large enough whilst still having a small enough file size for use in a web gallery.

Steven Speirs
SimpleViewer Support Team.

Re: Image quality

Hi Steven,

thank you for your quick response!

I understand the functions. But I don´t use the gallery xml file. I´m using Picasa (in tiltviewer with xml.php) - in my web album the pictures have a sice of 800px each. None of them are 288 x 191 in these web album.

Can you explain this? If you want you can have a look in my web-picasa-gallery: https://picasaweb.google.com/1171507540 … 424/Bilder

Hope for help... Thanks...

Re: Image quality

Your gallery's XML file is generated dynamically by your 'xml.php' file.
I do not know what PHP code is in your 'xml.php' file but I can see the output of the file by opening http://www.janetzko.biz/bj/tiltviewer/xml.php directly in a browser.
The first image listed in this file is http://lh6.ggpht.com/-sPDHpG-kk5s/UuP1D … R_0136.jpg
If you open this image directly in a browser, you will see that it has dimensions of 288 x 191 so it looks like the code in your 'xml.php' file is pulling in small images from your Picasa Web Album.
If you post the PHP source code of your 'xml.php' file, I will take a look and see if I can find where the problem lies.

Steven Speirs
SimpleViewer Support Team.

Re: Image quality

Hi,

I´ve also had a look at the generated XML file. There are two url in this result:

<photo imageurl="http://lh6.ggpht.com/-sPDHpG-kk5s/UuP1DwDf_qI/AAAAAAAAAs8/BSk49s6PdqM/s288/BER_0136.jpg" linkurl="http://lh6.ggpht.com/-sPDHpG-kk5s/UuP1DwDf_qI/AAAAAAAAAs8/BSk49s6PdqM/s1000/BER_0136.jpg" >

The first imageurl seems to be responsible for the size 288x191. The second linkurl is the one with the original size like in the picasa-webalbum, but it seems not to be used in tiltviewer.

Here is the code of my xml.php file - I didn´t change anything in this code:

    <?php


// generates XML file for use with Tiltviewer
// Paul van Roekel - jan 2010
// www.paulvanroekel.nl

    $userid = 'xxx';
    $album = 'bilder';
   
    // build feed URL
     $feedURL = "http://picasaweb.google.com/data/feed/a … mgmax=1000";
     //$feedURL = "http://picasaweb.google.com/data/feed/a … kind=photo";

    // read feed into SimpleXML object
    $sxml = simplexml_load_file($feedURL);
   
    echo "<tiltviewergallery><photos>\n";
   
    // iterate over entries in album
    // print each entry's title, size, dimensions, tags, and thumbnail image
    foreach ($sxml->entry as $entry) {
      $title = $entry->title;
      $summary = $entry->summary;
     
      $gphoto = $entry->children('http://schemas.google.com/photos/2007');
      $size = $gphoto->size;
      $height = $gphoto->height;
      $width = $gphoto->width;
     
      $media = $entry->children('http://search.yahoo.com/mrss/');
      $thumbnail = $media->group->thumbnail[2];
      $content = $media->group->content;
      $tags = $media->group->keywords;
 
        echo "<photo linkurl=\"";
        // url van photo
        echo $thumbnail->attributes()->{'url'};
        echo "\" linkurl=\"";
        echo $content->attributes()->{'url'};
        echo "\" >";

        echo "<title>";
        //echo $title ;
        echo "</title>";

        echo "<description>";
        echo $summary ;
        echo "</description>";
        echo "</photo>";
        echo "\n";

    }
   
    echo "</photos></tiltviewergallery>";
?>

Re: Image quality

...sorry - I gave you the sourcecode with a change in it: I replaced imgurl in the echo part to linkurl. Just to see what happens. But nothing happens - except that no more pictures are shown.

So don´t worry about the changed part. I´ve set it back to the original code. The problem of the size is still the same.

Re: Image quality

As TiltViewer does not use thumbnails (only main images), you would probably want to use the Picasa main image (rather than the Picasa thumbnail) for both the imageurl and the linkurl.
Use the following for the 'echo' section and all should be well.

echo "<photo imageurl=\"";
// url van photo
echo $content->attributes()->{'url'};
echo "\" linkurl=\"";
echo $content->attributes()->{'url'};
echo "\" >";

echo "<title>";
echo $title ;
echo "</title>";

echo "<description>";
echo $summary ;
echo "</description>";
echo "</photo>";

echo "\n";
Steven Speirs
SimpleViewer Support Team.