Plugin by André (http://forum.coppermine-gallery.net/index.php?action=profile;u=24278) based on allvip code from Images to fit screen resolution thread Reply #5: http://forum.coppermine-gallery.net/index.php/topic,76542.msg371047.html#msg371047 (http://forum.coppermine-gallery.net/index.php/topic,76542.msg371047.html#msg371047)
Use full-sized pictures on the intermediate-sized pictures pages and downscale them if needed to fit the users screen resolution. A click on the picture scales it to full original size.
Works when Config - File settings - Create intermediate pictures is OFF.
When Create intermediate pictures is ON scales the intermediate picture if is bigger then users screen resolution and a click on the picture scales it to full size of intermediate picture (Max width or height of an intermediate picture in Config - File settings )
v1.0 and v1.1 have diffrent code. I removed v1.1 because is not working on Safari.
Similar plugins: Panorama Viewer for cpg1.5.x http://forum.coppermine-gallery.net/index.php/topic,59986.0.html (http://forum.coppermine-gallery.net/index.php/topic,59986.0.html) and CPGAnis Dynamic Pan and Zoom plugin for full size images for cpg1.5.x http://forum.coppermine-gallery.net/index.php/topic,73757.0.html (http://forum.coppermine-gallery.net/index.php/topic,73757.0.html)
The style.css from the plugin folder (adds a fews styles for the image like cursor style,border radius and border) can be edited the way you want.
I just added the plugin to our download repository (https://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/) and updated the attachment in your initial post to match our naming conventions (http://documentation.coppermine-gallery.net/en/dev_plugins.htm#plugin_writing_naming_conventions_archives).
Is it possible and how to use function fit_screen_html_image from the plugin code in my theme.php?
I want to add onclick="or()" to the image tag without editing function theme_html_picture (is a big function).
Anyway I did another version of the plugin with a diffrent code (just 10 line of code and only 3 styles).The image class is not replaced.I don't know if is ok to post it or if is a good ideea to post another one...