This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 24 - Pages: 2 [ 1 2 | Next ] - Last Post: 24-Apr-2016 18:55 Last Post By: AndreWolff
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Please make it possible to generate a 2nd set of slides
Posted: 01-Jan-2016 17:40
 
  Click to reply to this thread Reply
For the new PhotoSwipe skin I need a set of slides for high resolution devices and another set of slides for low resolution devices like the iPhone.

So it would be nice if jAlbum could optionally generate a 2nd set of slides for example in a sub-directory slides-2 with other dimensions and quality as the standard slides in sub-directory slides.

I could also use the sub-directory for High Resolution images, but in that case it must also be possible to define the dimensions and quality of these images.
KeesSnepvangers

Posts: 34
Registered: 9-May-2013
Re: Please make it possible to generate a 2nd set of slides
Posted: 02-Jan-2016 10:44   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Interesting. Did you find a way that the device choices which pictures it should download?
mrag

Posts: 441
Registered: 26-Jul-2003
Re: Please make it possible to generate a 2nd set of slides
Posted: 02-Jan-2016 16:24   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Please see if this thread helps you at all:
http://jalbum.net/forum/thread.jspa?messageID=289835&#289835

jGromit has this concept feature in his Gromit skin (and possibly others), Please refer to his User's Manual at:
http://jgromit.com/gromit/man/gromit_misc.html
jGromit

Posts: 8,628
Registered: 31-Jan-2006
Re: Please make it possible to generate a 2nd set of slides
Posted: 02-Jan-2016 16:34   in response to: mrag in response to: mrag
 
  Click to reply to this thread Reply
I suspect that this will be one of those features, the need for which will disappear a year or two down the road. The reason for wanting it now has to do mostly with bandwidth limitations. But those limitations are gradually disappearing. Eventually, you'll just be able to feed high resolution material to all platforms, and not worry about it.

It's like the hi-res images, which were intended to provide images for book printing and backup, smaller than the originals. But these days, backing up your full-sized originals is not really a problem for most users - disk space is incredibly cheap, and more and more people are enjoying upload speeds fast enough that it's not an issue. Ditto for book-printing - you can just use your full-sized originals. There's really very little need these days for the hi-res images (and one of my suggestions is to eliminate them from jAlbum - their presence is just a complication).
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Re: Please make it possible to generate a 2nd set of slides
Posted: 02-Jan-2016 18:15   in response to: mrag in response to: mrag
 
  Click to reply to this thread Reply
mrag wrote:
jGromit has this concept feature in his Gromit skin (and possibly others), Please refer to his User's Manual at:
http://jgromit.com/gromit/man/gromit_misc.html
I can't do anything with this, it is hidden in a skin with a compiled user interface, so not suited as a learning object.
I think you should be able to change the dimensions and quality of High Resolution images simply in the core jAlbum program.
jGromit

Posts: 8,628
Registered: 31-Jan-2006
Re: Please make it possible to generate a 2nd set of slides
Posted: 02-Jan-2016 18:26   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
The linked threads make it all very obvious. You can't stop reading at step one, and expect to have the answers dumped into your lap. In short:
setAccessibility(true);
engine.hiResDim = new Dimension(3000,3000);
You can do that in the system console if you like, or do it under skin control.

There's been almost no demand for this from other users, so if you're expecting to see some new jAlbum setting, I'd say there's virtually no chance of that.

And I would strongly advise David not to implement yet another complication like the hi-res images. Dealing with those has added a layer of complexity to the skin coding, and mostly for no benefit. (I'm sorely tempted to pull support for it out of my skins entirely.)

These kinds of "enhancements" tend to muddy the waters, all to address what turns out to be a temporary issue. Then they stay in the code forever, long past their shelf life.
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 00:40   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
The linked threads make it all very obvious. You can't stop reading at step one, and expect to have the answers dumped into your lap. In short:
setAccessibility(true);
engine.hiResDim = new Dimension(3000,3000);
You can do that in the system console if you like, or do it under skin control.
I can't use the hi-res folder images, because I need too the ${imageHeight} and ${imageWidth} properties of the images.
There's been almost no demand for this from other users, so if you're expecting to see some new jAlbum setting, I'd say there's virtually no chance of that
see
http://jalbum.net/forum/thread.jspa?messageID=299924&#299924
And I would strongly advise David not to implement yet another complication like the hi-res images. Dealing with those has added a layer of complexity to the skin coding, and mostly for no benefit. (I'm sorely tempted to pull support for it out of my skins entirely.)
It is a pity that David does not react himself and concentrates development on items which most people do not use instead of paying attention to requirements for mobile devices which most people use these days.
jGromit

Posts: 8,628
Registered: 31-Jan-2006
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 01:01   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
It is a pity that David does not react himself and concentrates development on items which most people do not use instead of paying attention to requirements for mobile devices which most people use these days.

This is the sort of post that makes you such a delight.
davidekholm

Posts: 3,859
Registered: 18-Oct-2002
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 11:52   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
It is a pity that David does not react himself and concentrates development on items which most people do not use instead of paying attention to requirements for mobile devices which most people use these days.

?? Are you subscribing to our newsletters? The new Responsive skin is all about paying attention to the requirements of mobile devices and embeddability in existing sites. We're currently working on making our web site responsive too, but things may not move as fast as you like as we're a small team.
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 16:04   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
?? Are you subscribing to our newsletters? The new Responsive skin is all about paying attention to the requirements of mobile devices and embeddability in existing sites.
Yes I know, see my comments in the Responsive thread, but I am also working on the new resp[onsive PhotoSwipe skin and my team is even smaller. I need a 2nd set of slides for this PhotoSwipe skin!
davidekholm

Posts: 3,859
Registered: 18-Oct-2002
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 16:31   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
davidekholm wrote:
?? Are you subscribing to our newsletters? The new Responsive skin is all about paying attention to the requirements of mobile devices and embeddability in existing sites.
Yes I know, see my comments in the Responsive thread, but I am also working on the new resp[onsive PhotoSwipe skin and my team is even smaller. I need a 2nd set of slides for this PhotoSwipe skin!

If you need a second set of slide images generated, feel free to use jAlbum's AlbumImage API . Just constuct an AlbumImage out of an AlbumObject, scale it and apply filters, then call its save method.
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 18:19   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
If you need a second set of slide images generated, feel free to use jAlbum's AlbumImage API . Just constuct an AlbumImage out of an AlbumObject, scale it and apply filters, then call its save method.
Thanks for the information David, but my knowledge of the JAVA lasnguage id unsufficient to do this.
And if I could do this other skins cannot use it.

I think it is more a task of the jAlbum kernel to do this.
You have already all the code to make the slides folder with scaled images, so for you it will be easy to use the same code for making another slides2 or hires folder with the corresponding user interface to set the required image bounds, the JPEG quality, Scaling Method and the Sharpness and the ${imageHeight_2} and ${imageWidth_2} properties of the images.
davidekholm

Posts: 3,859
Registered: 18-Oct-2002
Re: Please make it possible to generate a 2nd set of slides
Posted: 14-Jan-2016 19:03   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
So far this hasn't been requested by other skin developers, and furthermore, nothing prevents other skin developers from using the same API , being inspired by your skin. Adding such support to the core of jAlbum complicates the core as it adds yet one more special case. The linking options and possibilities for skin developer errors increases with each combination of cases added.

The Javadocs for the AlbumImage API + some basic Java knowledge should be all you need in order to use it, but here is an example that also generates images bounded by 400x400 pixel box to the slides folder. These slide images are called X_medium.jpg where X is the image name.

In slide.htt:
<%-- Generate an extra slide image (filters and effects applied) bounded by a 400x400 box --%>
<%
	ai = new AlbumImage(currentObject);
	ai = ai.scaleToFit(new Dimension(400,400));
	ai = ai.applyFilters(JAFilter.CLOSEUPS_POSTSCALE_STAGE);
	String name = label + "_medium.jpg";
	File dest = new File(outputDirectory, engine.getSlideDirectory() + "/" + name);
	ai.saveImage(dest);
	String mediumPath = IO.urlEncode(name);
%>

Later in slide.htt, to display the new image:
<img src="${mediumPath}">
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Re: Please make it possible to generate a 2nd set of slides
Posted: 15-Jan-2016 17:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
So far this hasn't been requested by other skin developers
Well if you search in your forum you can find several examples like here: http://jalbum.net/forum/thread.jspa?messageID=138036&#138036
Adding such support to the core of jAlbum complicates the core as it adds yet one more special case.
?? Just call a function like MakeScaledImages(srcFolder,dstFolder,width,height,Quality,Sharpness) twice is not such a big problem,
In slide.htt:
The PhotoSwipe skin uses no Slide.htt template.

Thanks for the hints!
jGromit

Posts: 8,628
Registered: 31-Jan-2006
Re: Please make it possible to generate a 2nd set of slides
Posted: 15-Jan-2016 17:25   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
Well if you search in your forum you can find several examples like here: http://jalbum.net/forum/thread.jspa?messageID=138036&#138036

You have completely misunderstood that 9-year-old thread. MarkE was trying to deal with the problem of a fixed slide image size in Chameleon, and its inability to handle different monitor resolutions. It wasn't really about "resolution," per se - it was about generating different dimensions for images to accommodate different screen sizes, in an era when responsive skins didn't exist at all, outside of the Flash world. And bandwidth certainly wasn't the issue.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums