Images to fit screen resolution plugin ( responsive image plugin ) Images to fit screen resolution plugin ( responsive image plugin )
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Images to fit screen resolution plugin ( responsive image plugin )

Started by allvip, June 09, 2014, 08:46:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

Plugin by André 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

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 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

allvip

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.

Αndré

I just added the plugin to our download repository and updated the attachment in your initial post to match our naming conventions.

allvip

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...