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 [2] 3 4 5   Go Down

Author Topic: HTML5 slideshow plugin  (Read 92536 times)

0 Members and 1 Guest are viewing this topic.

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #20 on: February 02, 2015, 12:41:38 am »

Thaks for the plug-in and I would love to see also as plug-in for displaying the pictures on tablets and phone. I am a fan of the plug-in EnlargeIt! from Timo and now also your html5sldieshow Plug-in. With EnlargeIt! you can put pictures side by side to compare on big screens what is strong point.

Things that I came across during usage. In slide.min.js there is a bit of code "B.innerHTML" and the debugger reported that it should be "b.innerHTML". In slide.js and slide.min.js in the "swipe" part the "_prev" and "_next" have to be exchanged to have a more natural result when swiping.



Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #21 on: February 02, 2015, 02:49:00 am »

Things that I came across during usage. In slide.min.js there is a bit of code "B.innerHTML" and the debugger reported that it should be "b.innerHTML". In slide.js and slide.min.js in the "swipe" part the "_prev" and "_next" have to be exchanged to have a more natural result when swiping.
Thank you for your feedback. I'll try to do more work on the plugin soon.
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #22 on: February 04, 2015, 12:04:31 am »

Thanks and I have now forced it to use only slide.js and I can now slide correctly however it does not centre/rescale the picture when I rotate the phone/tablet so there must be some differences between slide.js and slide.min.js. The date and time only differ one minute so it should be the same version.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #23 on: February 04, 2015, 03:31:37 am »

I agree with _prev and _next needing to be swapped. As mentioned in the release note, I had quickly added swipe recognition and missed that backwards swiping behavior. As for rotating the touch device, I don't quite see what you mean about image positioning/scaling. It is working as I would expect for me (Safari/IOS). Perhaps you are referring to images being at the top of the screen when in portrait orientation. The original design was for my own use and was totally targeting desktop machines. It was designed that the image would be tight against the top, next to the controls. I suppose it would be good to change that behavior and have the image centered vertically. I could add it as an option. The problem then becomes .. where to display the captions. I think it should be close to the image but don't really want it jumping around.
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: Re: HTML5 slideshow plugin
« Reply #24 on: February 04, 2015, 12:25:54 pm »

I agree with _prev and _next needing to be swapped. As mentioned in the release note, I had quickly added swipe recognition and missed that backwards swiping behavior. As for rotating the touch device, I don't quite see what you mean about image positioning/scaling. It is working as I would expect for me (Safari/IOS). Perhaps you are referring to images being at the top of the screen when in portrait orientation. The original design was for my own use and was totally targeting desktop machines. It was designed that the image would be tight against the top, next to the controls. I suppose it would be good to change that behavior and have the image centered vertically. I could add it as an option. The problem then becomes .. where to display the captions. I think it should be close to the image but don't really want it jumping around.

I now understand why swipe works different. This has to with that a 180 degree rotation is not compensated in the swipe caculation.

The pictures at the top is fine to me and a little space between the navigation bar and the picture would be welcome. An user will rotate their tablet to maximize the viewing area according to the orientation (portrait/landscape). I will power up my PC later this day check if slide.js rescaling/centering still incorrect on my 7" tablet.

I am using responsive theme so all adapts so viewsize and rotation and your plugin is the next best to Bootstrap Carousel.
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #25 on: February 04, 2015, 03:27:51 pm »

On the moment I can't make head or tails from what I am testing. I get conflicting results and one time it works and the next time it does not. I am using Opera Mini (Webkit 39) and I check if the slides.js or slides.min.js is refreshed by tail-ing the HTTPD log-file.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #26 on: February 05, 2015, 12:43:49 am »

@marcelm
Thanks for investigating this and helping to (hopefully) make the plugin better. I've fixed the natural swipe direction issue and I am not having any problem with device rotation(Safari/IOS). I'll include the new .js files here for testing purposes. There is also slight modification for swipe detection. Please be aware that if you have debug mode enabled and you are logged in as an admin, slide.js will be used rather than side.min.js.
« Last Edit: February 09, 2015, 04:24:34 am by ron4mac »
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #27 on: February 05, 2015, 02:09:16 pm »

In slide.min.js there is a bit of code "B.innerHTML" and the debugger reported that it should be "b.innerHTML".
This is occurring because you have removed the slide number element from the control bar.
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #28 on: February 05, 2015, 05:03:50 pm »

Thanks for the new JS versions and both are working fine.

I do hard-code the selection of which version of slides.js/slides.min.js I was usings each time I test so I had no different behaviour between devices. I am testing on PC with Firefox Nightly and Iron (chromium version). On my Nexus 7 I use Opera Mini (webkit 39) and Firefox Nightly. Firefox Nightly was for a long time my favourite browser on my tablet but it went downhill and I changed to Opera Mini.

I have now put the slide number element back in the control bar and I removed it before because on my phone the control bar wrapped to a second bar. The screen is just to small (Samsung S2).

The rotating and the automatic centring of the image is now OK and I think that is done by the browser.

I have an other thing that occurs on my site. I have albums of 2 picture and with two pictures it won't show the first one.

Thanks again for this plug-in.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #29 on: February 05, 2015, 05:42:46 pm »

I have an other thing that occurs on my site. I have albums of 2 picture and with two pictures it won't show the first one.
Thanks for finding that bug. I guess I must not have tested with so few images in an album.
Attached new js files to fix that.
« Last Edit: February 09, 2015, 04:25:07 am by ron4mac »
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #30 on: February 06, 2015, 09:53:51 pm »

@marcelm
Since you have gotten me to look closer at mobile devices and swiping, I thought I would put together image slide instead of dissolve. Here are replacement JS files and a replacement CSS file that implements image left/right slide. There are some issues with it yet when the screen size or orientation changes that I will have to take care of. But if you would like to give it a try, I would like to know if you think it should be an optional display method.
« Last Edit: February 09, 2015, 04:25:40 am by ron4mac »
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #31 on: February 06, 2015, 11:02:43 pm »

Thanks for the new function and besides the already know problems on rotation I have noticed that when using the cursor-keys go left (go backwards) then the first two pictures are exchanged/slide from the right and the third slides in from the left as supposed.

I found the 0.3s slide time a bit short and I have doubled that to 0.6s. My tablet is recharging on the moment so I can try this version tomorrow on it so I can test then also the behaviour I mentioned above.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #32 on: February 08, 2015, 07:07:15 pm »

I have noticed that when using the cursor-keys go left (go backwards) then the first two pictures are exchanged/slide from the right and the third slides in from the left as supposed.
Corrected that issue (others as well) and combined the slide transition into a new release (v1.3) of the plugin (see original post above).
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #33 on: February 09, 2015, 11:09:49 pm »

I have used the 1.3 version and I lost the visual sliding on the tablet/PC and when rotating the picture does not resize any more. That resizing was a great feature of this plug-in.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #34 on: February 10, 2015, 12:05:23 am »

I have used the 1.3 version and I lost the visual sliding on the tablet/PC and when rotating the picture does not resize any more. That resizing was a great feature of this plug-in.
I see what you mean about resizing when rotated ... I will fix that. My apologies for not doing enough testing before I posted v1.3. I don't know what you mean about losing visual sliding. Image transition is only dissolve and not slide left/right? Did you install the full plugin? Did you select transition type in the config?
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #35 on: February 10, 2015, 12:59:38 am »

I did not visit the configuration page so it was still on the default setting. Now it is sliding smoothly. I am sorry for the confusing.

I did replace the whole plug-in directory because it was new version of the plug-in.

The opera browser is VERY aggressive when caching so I am now removing the cache (Android) of the browser in the settings. Not doing that drove me mad the last time when I was testing. I loaded the new Javascript but did not replace the version in cache and reused the chached version. :-( 
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #36 on: February 10, 2015, 01:11:15 am »

Just tested version 1.31 and resizing on rotation is working. When swiping between pictures the behaviour is a bit different from earlier versions. I suggest to compare with/height of the current picture with/height the incoming picture, when one differs force a resize.
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: HTML5 slideshow plugin
« Reply #37 on: February 10, 2015, 01:16:55 am »

Try this album. This has portrait and landscape pictures and also the two landscapes has a different aspect ratio

www dot mmmfotografie dot nl/index.php?file=html5slideshow/fullSlide&album=373
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #38 on: February 10, 2015, 01:48:43 am »

Try this album. This has portrait and landscape pictures and also the two landscapes has a different aspect ratio

www dot mmmfotografie dot nl/index.php?file=html5slideshow/fullSlide&album=373
Okay ... I think I know what the issue might be. I prepare 5 images for display at a time (out of possible hundreds in an album) ... the current image, 2 previous and 2 next. The 2 previous and 2 next get pre-sized for the current window/rotation. In response to a window change I'll have to resize the other 4 as well as the current image. I'll make that change as quickly as possible and probably just repost it as 1.3.1. I'll let you know.

Thanks for you patience and help.

Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: HTML5 slideshow plugin
« Reply #39 on: February 10, 2015, 02:18:27 am »

I'll make that change as quickly as possible and probably just repost it as 1.3.1. I'll let you know.
Change made.

To be sure you know, the slideshow will not display any image larger than it's natural size.
« Last Edit: February 10, 2015, 02:47:06 am by ron4mac »
Logged
Pages: 1 [2] 3 4 5   Go Up
 

Page created in 0.048 seconds with 20 queries.