Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Images to fit screen resolution plugin ( responsive image plugin )  (Read 11254 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362

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
« Last Edit: May 25, 2015, 03:06:19 pm by allvip »
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362

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.
« Last Edit: May 16, 2015, 02:03:32 pm by allvip »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

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

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Images to fit screen resolution plugin ( responsive image plugin )
« Reply #3 on: July 15, 2014, 12:40:15 pm »

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...
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.