139140141142143144145146147148149
= new TranscoderOutput(new FileOutputStream(tmpFile)); ImageTranscoder transcoder = new PNGTranscoder(); transcoder.transcode(validSrc, validDst); tmpFile.deleteOnExit(); return tmpFile.toURL(); }