<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>Hi Yves,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>That method is protected, so you cannot access it
directly</FONT></SPAN><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>Try something like this instead (haven't tested it
myself):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>CmsPhotoAlbumConfiguration configuration = new
CmsPhotoAlbumConfiguration();</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff
size=2>configuration.getDetailImageScaler().setQuality(90);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff
size=2>configuration.getDetailImageScaler().setType(2);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010>
<DIV dir=ltr align=left><SPAN class=794552813-09072010><FONT face=Arial
color=#0000ff size=2>configuration.getDetailImageScaler().setCropArea(0, 0, 80,
80);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010>Hope this helps.
:)</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=794552813-09072010>Best
regards,</SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=794552813-09072010>Paul</SPAN></DIV></SPAN></DIV></FONT></SPAN></DIV><FONT
face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Yves
Glodt<BR><B>Sent:</B> 9. juli 2010 15:21<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> Re: [opencms-dev] Photo album overview to crop
images<BR></FONT><BR></DIV>
<DIV></DIV>I tried the following code down here in the template of my
photoalbum. Unfortulately it fails with:<BR><BR>"The method
setDetailImageScaler(CmsImageScaler) from the type CmsPhotoAlbumConfiguration
is not visible"<BR><BR>Anybody got a hint for me... :-) ?<BR><BR>Best
regards,<BR>Yves<BR><BR><BR><I>CmsImageScaler scaler = new
CmsImageScaler();<BR>scaler.setQuality(90);<BR>scaler.setType(2);<BR>scaler.setCropArea(0,0,80,80);<BR><BR><BR>CmsPhotoAlbumConfiguration
configuration = new
CmsPhotoAlbumConfiguration();<BR>configuration.setDetailImageScaler(scaler);
<SPAN style="COLOR: rgb(255,0,0)">// it fails
here</SPAN><BR><BR>cms.setConfiguration(configuration);<BR>//cms.getConfiguration().getDetailImageScaler().setType(2);<BR>//cms.getConfiguration().getDetailImageScaler().setCropArea(0,0,80,80);<BR><BR></I>...<BR><BR>cms.displayAlbum();<BR><BR><BR><BR><BR>
<DIV class=gmail_quote>On 6 July 2010 09:57, Yves Glodt <SPAN dir=ltr><<A
href="mailto:yg@mind.lu">yg@mind.lu</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Bumping...<BR><BR>In
fact, to clarify, I need to show the images in the gallery overview in a
square shape (100x100px), not rectangle.<BR><BR>Doing some research I found
that I can probably edit the template used for the photo album and create a
custom instance of CmsImageScaler.<BR><BR>Is that possible? Are there any
examples around?<BR><BR>Best regards,<BR><FONT color=#888888>Yves</FONT>
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR>
<DIV class=gmail_quote>On 22 June 2010 10:28, Yves Glodt <SPAN
dir=ltr><<A href="mailto:yg@mind.lu"
target=_blank>yg@mind.lu</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello,<BR><BR>is
it possible to have the photoalbum crop the images in the overview?<BR>(I
have a situation where the overview should have square images
only.)<BR><BR>Best regards,<BR><FONT
color=#888888>Yves<BR></FONT></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>