code: private String getSmallImageScaleParam(CmsResultItemBean infoBean) {
  
          String result = null;
          if (infoBean.getDimension() != null) {
              String[] sizes = infoBean.getDimension().split("x");
              try {
                  int width = Integer.parseInt(sizes[0].trim());
                  int height = Integer.parseInt(sizes[1].trim());
                  // only use the small image dimensions in case of dimensions smaller than the big thumbnail
                  if ((I_CmsLayoutBundle.INSTANCE.galleryResultItemCss().bigImageWidth() > width)
                      || (I_CmsLayoutBundle.INSTANCE.galleryResultItemCss().bigImageHeight() > height)) {
                      result = IMAGE_SCALE_PARAM
                          + ",w:"
                          + I_CmsLayoutBundle.INSTANCE.galleryResultItemCss().smallImageWidth()
                          + ",h:"
                          + I_CmsLayoutBundle.INSTANCE.galleryResultItemCss().smallImageHeight();
                  }
              } catch (Exception e) {
                  // failed parsing the dimensions, will use big image
              }
          }
          if (result == null) {
              result = getBigImageScaleParam();
          }
          return result;
      }
docs: Returns the scale parameter for small thumbnail images.<p>
  
  @param infoBean the resource info
  
  @return the scale parameter