forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: brad4edat on October 12, 2011, 11:02:36 pm

Title: Zoom in out ? plugin?
Post by: brad4edat on October 12, 2011, 11:02:36 pm
Hello all:)
I have a 3D site and gallery to it. For 3D images is very important to have the option zoom, a user can fully enjoy the realistic 3d photos.
I found some old threads for the 1.4 version of the gallery, but I do not work.
I use version 1.5, I can not find the topic nor zoom plugin.

Please tell me is it possible and how to add real zoom feature to my gallery. Extremely important and I need, otherwise they lose the enjoyment of 3d pictures: (

here's a link to my current gallery, if you need to look 3d-universe.net/Gallery/ (http://3d-universe.net/Gallery/)
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 13, 2011, 09:07:36 am
Please post the link(s) to the cpg1.4.x plugin(s)/mod(s).
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 13, 2011, 07:11:10 pm
http://forum.coppermine-gallery.net/index.php?topic=24590.0
http://forum.coppermine-gallery.net/index.php?topic=7282.0

ore may be I need this plugin ???   Visual enhancement    Anis (CPGAnis)       Dynamic Pan and Zoom of full size images using ANIS
MD5-Hash:    

      Donnoman
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 14, 2011, 11:28:54 am
I added a cpg1.5.x port of the CPGAnis plugin to the svn. Please open the "plugins" directory of your gallery with your favorite FTP application, create the directory "CPGAnis" and upload the content of the following package to that directory: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/CPGAnis/?view=tar
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 14, 2011, 11:55:47 pm
Thanks:) I do this job. Would not be bad to be with lupins + and - to orentirat users easier, but it works:)

But I have a big problem now?
When I came into the my gallery and click on the small picture to see it open as much in a new window, the picture is loaded with great zoom, which can not reduce ( - 50 or 20 or 0 %), but can be increase( from 100 to + 200 + 300 % ...).
 Image charge jump of 100%

The image is loaded directly to zoom 100%: (

How and what to do, that the image to open in full screen, and when pressed with the left mouse button, only then to increase the zoom?

See if you and your photos are loaded incorrectly large zoom:)
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 15, 2011, 10:09:45 am
Thanks:) I do this job. Would not be bad to be with lupins + and - to orentirat users easier, but it works:)

But I have a big problem now?
When I came into the my gallery and click on the small picture to see it open as much in a new window, the picture is loaded with great zoom, which can not reduce ( - 50 or 20 or 0 %), but can be increase( from 100 to + 200 + 300 % ...).
 Image charge jump of 100%

The image is loaded directly to zoom 100%: (

How and what to do, that the image to open in full screen, and when pressed with the left mouse button, only then to increase the zoom?

Can you look and whether and when you are loaded with the wrong zoom pictures in my gallery?
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 15, 2011, 10:35:06 am
So opencast some regularity in the problem.
Pictures with a resolution about 1000px display properly.
More than 1000px begins to lose parts of the picture for zoom. As the resolution is greater the greater the losses of the image.
I tried the settings in the gallery to ask 1280 px images to be resized, but had no effect.

What should I do that with high resolution pictures can be opened normally and only then to zoom?:)
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 15, 2011, 10:47:22 am
So opencast some regularity in the problem.
Pictures with a resolution about 1000px display properly.
More than 1000px begins to lose parts of the picture for zoom. As the resolution is greater the greater the losses of the image.
I tried the settings in the gallery to ask 1280 px images to be resized, but had no effect.

What should I do that with high resolution pictures can be opened normally and only then to zoom?:)

Done. To set up your gallery resizes all photos by uploading them to 1280 x 800px, and then pictures are loaded correctly.
But would not that lead to excessive cpu load on server when uploading photos?

And how to get gallery to reload with the correct settings already uploaded images?

However, if there is a way to not resize the pictures of this low resolution (because I doubt that another resolution monitors will again have problems) but to take any other correction of the problem?
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 15, 2011, 10:52:33 am
Done. To set up your gallery resizes all photos by uploading them to 1280 x 800px, and then pictures are loaded correctly.
But would not that lead to excessive cpu load on server when uploading photos?

And how to get gallery to reload with the correct settings already uploaded images?

However, if there is a way to not resize the pictures of this low resolution (because I doubt that another resolution monitors will again have problems) but to take any other correction of the problem?


Uhh: ((In this photo resizing a huge loss of quality and impact of the senses and zoom in 3D images is completely lost: ((
We need somehow to be without losing the original image resolution: (

Any ideas?
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 17, 2011, 10:35:30 am
Please use the latest package from the SVN repository.
Title: Re: Re: Zoom in out ? plugin?
Post by: brad4edat on October 17, 2011, 05:48:47 pm
Please use the latest package from the SVN repository.


Is this the latest version?
With these files I replace my without albums and anycontent.php??
Properly orient?:)
Title: Re: Re: Zoom in out ? plugin?
Post by: brad4edat on October 17, 2011, 05:49:26 pm

Is this the latest version?  http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.5.x/
With these files I replace my without albums and anycontent.php??
Properly orient?:)
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 17, 2011, 06:11:18 pm
I'm talking about the plugin package (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/CPGAnis/?view=tar), sorry for my imprecise advice.
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 17, 2011, 06:42:48 pm
Thanks:)
Before and I translate to link with plugins written and thought to try that way, first with the plugin.
:)
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 17, 2011, 07:07:09 pm
Thanks:)
Before and I translate to link with plugins written and thought to try that way, first with the plugin.
:)

Thank ANDRE:)
For now just replaced the folder with the necessary plug-in, because at the moment my gallery is version 1.5.

An improvement compared to before. Now I have to look over the whole picture, when a zoom. There were sliders for vertical and horizontal motion picture. Before missing the sliders.

It remains only to solve the problem of starting 100% zoom! I do not want to damp resolution upload photos, as I said a great 3D picture resolution is very important:)
I will obviously need to look somewhere in the plugin code that can be edited not to load 100% initially and 30 or 50%, at least:)

Would there be any way of the plugin file to change these 100% zoom?:)
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 19, 2011, 01:34:42 am
Приятели, помогнете :) Проблема със голямият начален зоом 100%, си остава нерешен. Дори в момента писах и на хората разработили ANIS кода. Те ме насочиха да погледна тук - http://www.ssec.wisc.edu/visit/anis/test4/anist4a.html И да добавя необходимия код. Немога обаче да разбера къде точно да добавя : <PARAM name="image_window_size" value="250,200"> <PARAM name="active_zoom" value="yes"> Във папката с плъгина на ANIS - anistest.html файла. Или трябва да преработя файла на самата галерия displayimage/fullsize ??? Мисля че тази преработка на кода да отваря с доста по-малък първичен зоом е много по-практична за coppermine gallery, и чак след това да се зоом снимката. Можете ли да помогнете с тази настройка? По малък зоом, отначало, и да се отваря на цял екран .
Friends help:)
Problem of high initial zoom 100%, remains unresolved.
Even when people wrote and developed the code ANIS.
They directed me to look here - http://www.ssec.wisc.edu/visit/anis/test4/anist4a.html

And to add the necessary code. But can not I find out exactly where to add:

<PARAM Name="image_window_size" value="250,200">
<PARAM Name="active_zoom" value="yes">

In the plugin folder of ANIS - anistest.html file.
Or should rewrite the file of the gallery itself displayimage / fullsize???

I think this revision of the code to open a much smaller primary zoom is much more practical for coppermine gallery, and only then to zoom picture. Can you help with this setting?
In a small zoom, scratch, and opens full screen.
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 19, 2011, 11:42:42 am
I'm not sure what you mean with
Quote
high initial zoom 100%
as when I open a picture in my test gallery or your 3D gallery I can see the whole picture without any zoom. Tested with Firefox 7.0.1.
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 19, 2011, 06:27:28 pm
Момчета ето нагледно за какъв голям начален zoom говоря.

със последна версия на Firefox 7.0.1
Последна версия на java
Най-новата версия на Coppermine cpg1.5.16
Както и при IE (internet explorer) , и при ощеняколко мой приятели, снимките се отварят по абсолютно същия начин. Голям начален zoom, който неможе да се намали, а само да се увеличава.

Настроил съм галерията да качва снимките с оригиналната им резолюция, да не ги преоразмерява при качване, защото се получават загуби от качеството на изображенията:(

Ще пиша и на TOM, да погледне темата тук.
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 19, 2011, 06:28:51 pm
Момчета ето нагледно за какъв голям начален zoom говоря.

със последна версия на Firefox 7.0.1
Последна версия на java
Най-новата версия на Coppermine cpg1.5.16
Както и при IE (internet explorer) , и при ощеняколко мой приятели, снимките се отварят по абсолютно същия начин. Голям начален zoom, който неможе да се намали, а само да се увеличава.

Настроил съм галерията да качва снимките с оригиналната им резолюция, да не ги преоразмерява при качване, защото се получават загуби от качеството на изображенията:(

Ще пиша и на TOM, да погледне темата тук.

Момчета ето нагледно за какъв голям начален zoom говоря. със последна версия на Firefox 7.0.1 Последна версия на java Най-новата версия на Coppermine cpg1.5.16 Както и при IE (internet explorer) , и при още няколко мой приятели, снимките се отварят по абсолютно същия начин. Голям начален zoom, който неможе да се намали, а само да се увеличава. Настроил съм галерията да качва снимките с оригиналната им резолюция, да не ги преоразмерява при качване, защото се получават загуби от качеството на изображенията:( Ще пиша и на TOM, да погледне темата тук.
Guys here's a visual for how large an initial zoom speak.

with the latest version of Firefox 7.0.1
Latest version of java
The newest version of Coppermine cpg1.5.16
As with IE (internet explorer), and a few friends of mine, the pictures open in exactly the same way. Large initial zoom, which You can not be reduced only to increase.

I set up the gallery to upload photos to their original resolution, not resized when uploading them, because a loss of image quality: (

I will write and TOM, looking theme here.
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 19, 2011, 06:38:22 pm
TOM
Wrote an e-mail, this code on the problem of the size of images in full screen and zoom:

Quote
I am sorry that I do not understand what you are asking. Last night
at home, I found two problems that would need to be fixed. Today at
work, I have confirmed that they are not fixed. Here are the two
problems:

1. The JavaScript that is used to create the HTML to start up AniS
has an error. The code reads:

applet_tag1='<PARAM name=\"image_window_size\"
value=\"'+(w-diffW)+','+(h-diffH)+'\">\n';

applet_tag2='<APPLET codebase=\"plugins/CPGAnis/anis\"
code=\"AniS.class\" width=\"'+ (w-diffW-5) +'\" height=\"' +
(h-diffH-7) + '\">\n';

applet_tag=applet_tag1+applet_tag2;


But...the last line ("applet_tag=...") is wrong (incorrect). It should be:

applet_tag=applet_tag2+applet_tag1;

The way it is right now, the "image_window_size=" parameter is not
being used, since it is outside of the <APPLET>...</APPLET> tags in
the HTML that is created.

2. The second problem is that the computation of the height and width
parameters (both for the APPLET tag and the image_window_size is
wrong/incorrect. This morning, the image I tried to look at from the
URL you sent had this:

<PARAM name="image_window_size" value="4000,2101"> <APPLET
codebase="plugins/CPGAnis/anis" code="AniS.class" width="3995"
height="2094">

As you can see, these values are much, much to large (big)....they
need to fit the size of my screen, or smaller. The problem is, again,
in the JavaScript. Although the variables "w" and "h" are computed,
the values are over-written on lines 43 and 44 by these:
w = 4000;
h = 2101;

And since the "diffW" and "diffH" values are both 0 (zero), the
resulting height and width values are wrong/incorrect.

These problems must be corrected first before anything will work correctly.

In the "RAR" file you sent me, I found that this JavaScript is
apparently generated in this file:

\Asal si galeriqta\plugins\CPGAnis\codebase.php

and that is where the changes will have to be made.
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 19, 2011, 08:13:54 pm
Hello again, I made changes to the file plugin codebase.php of ANIS.
 Changes are lines:


 121 - applet_tag1 = '<PARAM name=\"image_window_size\" value=\"1280,800"> \ n';

 123 - applet_tag = applet_tag2 + applet_tag1;

 Now is not a big zoom 100% and starts as it should be, but still frame image remains larger than the screen.
 Help to correct code with the guidance of TOM.

 See how the photos are now open:
 http://3d-universe.net/Gallery/displayimage.php?pid=953&fullsize=1



Code: [Select]
<?php
/**************************************************
  Coppermine 1.5.x Plugin - CPGAnis
  *************************************************
  Copyright (c) 2011 eenemeenemuu
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

$thisplugin->add_action('page_start','anis');

function 
anis() {
    global 
$ALBUM_SET,$cat,$CONFIG;
    
$superCage Inspekt::makeSuperCage();

    if (
$superCage->get->keyExists('fullsize') && defined('DISPLAYIMAGE_PHP')) {
        if (!
USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
            
$redirect $redirect "login.php";
            
header("Location: $redirect");
            exit();
        }
        
$cat $superCage->get->keyExists('cat') ? $superCage->get->getInt('cat') : 0;        
        
get_meta_album_set($cat,$ALBUM_SET);
        
anis_display_fullsize_pic();
        
ob_end_flush();
        exit();
    }
}

// Display the full size image
function anis_display_fullsize_pic() {
    global 
$CONFIG$THEME_DIR$ALBUM_SET;
    global 
$lang_errors$lang_fullsize_popup$lang_charset;
    
$superCage Inspekt::makeSuperCage();

    if (
$superCage->get->keyExists('picfile')) {
        if (!
GALLERY_ADMIN_MODE) {
            
cpg_die(ERROR$lang_errors['access_denied'], __FILE____LINE__);
        }

        
$picfile $superCage->get->getRaw('picfile');
        
$picname $CONFIG['fullpath'] . $picfile;
        
$imagesize = @getimagesize($picname);
        
$imagedata = array('name' => $picfile'path' => path2url($picname), 'geometry' => $imagesize[3]);
    } elseif (
$superCage->get->keyExists('pid')) {
        
$pid $superCage->get->getInt('pid');
        
$sql "SELECT * " "FROM {$CONFIG['TABLE_PICTURES']} " "WHERE pid='$pid$ALBUM_SET";
        
$result cpg_db_query($sql);

        if (!
mysql_num_rows($result)) {
            
cpg_die(ERROR$lang_errors['non_exist_ap'], __FILE____LINE__);
        }

        
$row mysql_fetch_array($result);
        
$pic_url get_pic_url($row'fullsize');
        
$geom 'width="' $row['pwidth'] . '" height="' $row['pheight'] . '"';
        
$imagedata = array('name' => $row['filename'], 'path' => $pic_url'geometry' => $geom);
    }

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <title><?php echo $CONFIG['gallery_name'?>: <?php echo $lang_fullsize_popup['click_to_close'];
      
?>
</title>
  <meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' $lang_charset $CONFIG['charset'?>" />
  <script type="text/javascript">
  function adjust_popup()
{
        var w, h, fixedW, fixedH, diffW, diffH;
        if (document.documentElement && document.body.clientHeight==0) {     // Catches IE6 and FF in DOCMODE
                fixedW = document.documentElement.clientWidth;
                fixedH = document.documentElement.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.documentElement.clientWidth;
                diffH = fixedH - document.documentElement.clientHeight;
                w = fixedW + diffW + 16; // Vert Scrollbar Always On in DOCMODE.
                h = fixedH + diffH;
                if (w >= screen.availWidth) h += 16;
        } else if (document.all) {
                fixedW = document.body.clientWidth;
                fixedH = document.body.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.body.clientWidth;
                diffH = fixedH - document.body.clientHeight;
                w = fixedW + diffW;
                h = fixedH + diffH;
                if (h >= screen.availHeight) w += 16;
                if (w >= screen.availWidth)  h += 16;
        } else {
                fixedW = window.innerWidth;
                fixedH = window.innerHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - window.innerWidth;
                diffH = fixedH - window.innerHeight;
                w = fixedW + diffW;
                h = fixedH + diffH;
                if (w >= screen.availWidth)  h += 16;
                if (h >= screen.availHeight) w += 16;
        }
        w = Math.min(w,screen.availWidth);
        h = Math.min(h,screen.availHeight);
        // full size hack - START
        w = <?php echo $row['pwidth']; ?>;
        h = <?php echo $row['pheight']; ?>;
        // full size hack - END
        window.resizeTo(w,h);
        window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
       // alert('<!-- width: ' + w + ' height: ' + h + ' --> ');
       //applet_tag='<APPLET codebase=\"plugins/CPGAnis/anis\" code=\"AniS.class\" width=\"' + w + '\" height=\"' + h + '\">';
       applet_tag1='<PARAM name=\"image_window_size\" value=\"1280,800">\n';
       applet_tag2='<APPLET codebase=\"plugins/CPGAnis/anis\" code=\"AniS.class\" width=\"'+ (w-diffW-5) +'\" height=\"' + (h-diffH-7) + '\">\n';
       applet_tag=applet_tag2+applet_tag1;
}
  </script>
  <style type="text/css">
  body { margin: 0; padding: 0; background-color: gray; }
  img { margin:0; padding:0; border:0; }
  #content { margin:0 auto; padding:0; border:0; }
  table { border:0; height:100%; width:100%; border-collapse:collapse}
  td {         vertical-align: middle; text-align:center; }
  applet {border:0, margin:0; padding:0;}
  </style>
  </head>
  <body>
   <script language="JavaScript" type="text/JavaScript">
      adjust_popup();
   </script>
    <table>
      <tr>
            <td>
          <div id="content">
                <script language="JavaScript" type="text/JavaScript">
                 document.write(applet_tag);
                </script>
               <PARAM name="active_zoom" value="x">

              <?php
              
           
echo ' <PARAM name="filenames" value="'
                
htmlspecialchars($imagedata['path']) . '"> '

               
?>

                 </APPLET>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
<?php
}

?>
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 20, 2011, 12:41:45 am
Hello again:)

After many attempts, I managed to adjust almost perfectly as I want the gallery. Images open and zoom almost like I want.

Here's a look at Link - http://3d-universe.net/Gallery/displayimage.php?album=lastup&cat=0&pid=971 # top_display_media
The picture format is 16x9 4320x2432px - original resolution.

Gotcha code plugin - CPGanis / codebase.php
and changed lines 121/122/123
(Applet_tag1 = '<PARAM name=\"image_window_size\" value=\"1258,690"> \ n';

       applet_tag2 = '<APPLET codebase=\"plugins/CPGAnis/anis\" code=\"AniS.class\" width=\"1280" height=\"710"> \ n';

       applet_tag = applet_tag2 + applet_tag1;)
so that the proportions to be responsible for images with a resolution of 16x9!


But pictures are not 16x9 resolution, open with incorrect proportions!
http://3d-universe.net/Gallery/displayimage.php?album=4&pid=350 # top_display_media
Apparently, the code must be converted to work% rather than px.
I tried to write it to work with%, but failed. Just image does not load when working with%.


Would you rewritten these lines to work with%, so the 4x3 resolution images are not blurry, but it is important to 16x9 display properly!


Processing code, the plugin will be very useful for users of coppermine gallery, I'm sure:))

Sincere thanks to Tom Whittaker!!! I thank him much for your time and attention, a great guy:))



CPGanis new code -->   codebase.php
Code: [Select]
<?php
/**************************************************
  Coppermine 1.5.x Plugin - CPGAnis
  *************************************************
  Copyright (c) 2011 eenemeenemuu
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

$thisplugin->add_action('page_start','anis');

function 
anis() {
    global 
$ALBUM_SET,$cat,$CONFIG;
    
$superCage Inspekt::makeSuperCage();

    if (
$superCage->get->keyExists('fullsize') && defined('DISPLAYIMAGE_PHP')) {
        if (!
USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
            
$redirect $redirect "login.php";
            
header("Location: $redirect");
            exit();
        }
        
$cat $superCage->get->keyExists('cat') ? $superCage->get->getInt('cat') : 0;        
        
get_meta_album_set($cat,$ALBUM_SET);
        
anis_display_fullsize_pic();
        
ob_end_flush();
        exit();
    }
}

// Display the full size image
function anis_display_fullsize_pic() {
    global 
$CONFIG$THEME_DIR$ALBUM_SET;
    global 
$lang_errors$lang_fullsize_popup$lang_charset;
    
$superCage Inspekt::makeSuperCage();

    if (
$superCage->get->keyExists('picfile')) {
        if (!
GALLERY_ADMIN_MODE) {
            
cpg_die(ERROR$lang_errors['access_denied'], __FILE____LINE__);
        }

        
$picfile $superCage->get->getRaw('picfile');
        
$picname $CONFIG['fullpath'] . $picfile;
        
$imagesize = @getimagesize($picname);
        
$imagedata = array('name' => $picfile'path' => path2url($picname), 'geometry' => $imagesize[3]);
    } elseif (
$superCage->get->keyExists('pid')) {
        
$pid $superCage->get->getInt('pid');
        
$sql "SELECT * " "FROM {$CONFIG['TABLE_PICTURES']} " "WHERE pid='$pid$ALBUM_SET";
        
$result cpg_db_query($sql);

        if (!
mysql_num_rows($result)) {
            
cpg_die(ERROR$lang_errors['non_exist_ap'], __FILE____LINE__);
        }

        
$row mysql_fetch_array($result);
        
$pic_url get_pic_url($row'fullsize');
        
$geom 'width="' $row['pwidth'] . '" height="' $row['pheight'] . '"';
        
$imagedata = array('name' => $row['filename'], 'path' => $pic_url'geometry' => $geom);
    }

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <title><?php echo $CONFIG['gallery_name'?>: <?php echo $lang_fullsize_popup['click_to_close'];
      
?>
</title>
  <meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' $lang_charset $CONFIG['charset'?>" />
  <script type="text/javascript">
  function adjust_popup()
{
        var w, h, fixedW, fixedH, diffW, diffH;
        if (document.documentElement && document.body.clientHeight==0) {     // Catches IE6 and FF in DOCMODE
                fixedW = document.documentElement.clientWidth;
                fixedH = document.documentElement.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.documentElement.clientWidth;
                diffH = fixedH - document.documentElement.clientHeight;
                w = fixedW + diffW + 16; // Vert Scrollbar Always On in DOCMODE.
                h = fixedH + diffH;
                if (w >= screen.availWidth) h += 16;
        } else if (document.all) {
                fixedW = document.body.clientWidth;
                fixedH = document.body.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.body.clientWidth;
                diffH = fixedH - document.body.clientHeight;
                w = fixedW + diffW;
                h = fixedH + diffH;
                if (h >= screen.availHeight) w += 16;
                if (w >= screen.availWidth)  h += 16;
        } else {
                fixedW = window.innerWidth;
                fixedH = window.innerHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - window.innerWidth;
                diffH = fixedH - window.innerHeight;
                w = fixedW + diffW;
                h = fixedH + diffH;
                if (w >= screen.availWidth)  h += 16;
                if (h >= screen.availHeight) w += 16;
        }
        w = Math.min(w,screen.availWidth);
        h = Math.min(h,screen.availHeight);
        // full size hack - START
        w = <?php echo $row['pwidth']; ?>;
        h = <?php echo $row['pheight']; ?>;
        // full size hack - END
        window.resizeTo(w,h);
        window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
       // alert('<!-- width: ' + w + ' height: ' + h + ' --> ');
       //applet_tag='<APPLET codebase=\"plugins/CPGAnis/anis\" code=\"AniS.class\" width=\"' + w + '\" height=\"' + h + '\">';
       applet_tag1='<PARAM name=\"image_window_size\" value=\"1258,690">\n';
       applet_tag2='<APPLET codebase=\"plugins/CPGAnis/anis\" code=\"AniS.class\" width=\"1280" height=\"710">\n';
       applet_tag=applet_tag2+applet_tag1;
}
  </script>
  <style type="text/css">
  body { margin: 0; padding: 0; background-color: gray; }
  img { margin:0; padding:0; border:0; }
  #content { margin:0 auto; padding:0; border:0; }
  table { border:0; height:100%; width:100%; border-collapse:collapse}
  td {         vertical-align: middle; text-align:center; }
  applet {border:0, margin:0; padding:0;}
  </style>
  </head>
  <body>
   <script language="JavaScript" type="text/JavaScript">
      adjust_popup();
   </script>
    <table>
      <tr>
            <td>
          <div id="content">
                <script language="JavaScript" type="text/JavaScript">
                 document.write(applet_tag);
                </script>
               <PARAM name="active_zoom" value="x">

              <?php
              
           
echo ' <PARAM name="filenames" value="'
                
htmlspecialchars($imagedata['path']) . '"> '

               
?>

                 </APPLET>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
<?php
}

?>
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 20, 2011, 03:12:01 pm
Please try the latest plugin version from the SVN repository. It don't use fixed values and also keeps the picture ratio (which your current plugin version doesn't, as you can see here: http://3d-universe.net/Gallery/displayimage.php?pid=350).
Title: Re: Zoom in out ? plugin?
Post by: brad4edat on October 20, 2011, 11:13:59 pm
Thanks Andre, now everything is fine.
But it is very strange because when before I lost 2-3 days entire SVN rar archive to Plugins, and took it ANIS, had these problems.

Now if only I downloaded SVN version of the plugin itself ANIS, everything is fine?

A lot of interesting ?!
But anyway, now when everything fell into place:)
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 20, 2011, 11:18:58 pm
I updated the plugin code in the SVN repository several times in the meanwhile.
Title: Re: Zoom in out ? plugin?
Post by: Αndré on October 21, 2011, 04:04:32 pm
Plugin announcement thread: http://forum.coppermine-gallery.net/index.php/topic,73757.0.html