Skip to content
Snippets Groups Projects
Commit a8afa73e authored by gpawel's avatar gpawel
Browse files

SP-249 BIS-18: Name of file container for thumbnails is ambiguous

SVN: 26424
parent 0f50b088
No related branches found
No related tags found
No related merge requests found
......@@ -98,4 +98,15 @@ public abstract class AbstractThumbnailsConfiguration implements IThumbnailsConf
{
return transformations.put(channelCode.toUpperCase(), transformationCode);
}
protected String getFirstTransformationCode()
{
if (transformations.size() == 0)
{
return "";
} else
{
return "_" + transformations.values().iterator().next();
}
}
}
......@@ -56,6 +56,7 @@ public class ResolutionBasedThumbnailsConfiguration extends AbstractThumbnailsCo
@Override
protected String getDefaultFileName()
{
return String.format("thumbnails_%dx%d.h5ar", maxWidth, maxHeight);
return String.format("thumbnails_%dx%d%s.h5ar", maxWidth, maxHeight,
getFirstTransformationCode());
}
}
......@@ -42,6 +42,7 @@ public class ZoomLevelBasedThumbnailsConfiguration extends AbstractThumbnailsCon
@Override
protected String getDefaultFileName()
{
return String.format("thumbnails_%.0fpct.h5ar", zoomLevel * 100.0);
return String.format("thumbnails_%.0fpct%s.h5ar", zoomLevel * 100.0,
getFirstTransformationCode());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment