19 package org.turro.elephant.web;
21 import java.awt.Dimension;
22 import java.io.IOException;
23 import java.util.Collection;
24 import org.turro.string.Strings;
25 import org.turro.elephant.impl.repository.RepositoryFile;
26 import org.turro.util.ImageUtil;
34 private final String url;
35 private final int x, y;
48 return Strings.isBlank(url);
58 Dimension dimension = ImageUtil.dimension(rf.getFile());
59 if(dimension.getWidth() >= 200 || dimension.getHeight() >= 200) {
60 return new SocialImage(rf.getWebPath(), (
int) dimension.getWidth(), (
int) dimension.getHeight());
62 }
catch (IOException ex) {}
static SocialImage getFromFiles(Collection< RepositoryFile > files)
SocialImage(String url, int x, int y)