Warning: session_start(): open(/var/lib/php/sessions/sess_b5neqopo6i2g7ejv8b2ps24evl, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static BufferedImage toBufferedImageOpt(O o) {
if (o cast BufferedImage) ret o;
if (o cast Image) ret copyImage(o);
if (o cast MakesBufferedImage)
ret o.getBufferedImage();
ifdef toBufferedImageOpt_acceptFile
if (o cast File)
if (isImageFile(o))
ret loadBufferedImageFile(o);
endifdef
S c = getClassName(o);
// Keep this because it also works on imported objects
if (eqOneOf(c, "main$BWImage", "main$RGBImage"))
ret (BufferedImage) call(o, "getBufferedImage");
ifdef PNGFile // Who uses this anymore?
if (eq(c, "main$PNGFile"))
ret (BufferedImage) call(o, "getImage");
endifdef
null;
}