mirror of
https://github.com/sismics/docs.git
synced 2025-12-14 02:06:25 +00:00
fix file modal + fix file link in audit log + high quality thumbs
This commit is contained in:
@@ -171,7 +171,7 @@ public class File implements Loggable {
|
||||
@Override
|
||||
public String toMessage() {
|
||||
// Attached document ID and name concatenated
|
||||
return documentId + name;
|
||||
return (documentId == null ? Strings.repeat(" ", 36) : documentId) + name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -129,8 +129,8 @@ public class FileUtil {
|
||||
|
||||
if (image != null) {
|
||||
// Generate thumbnails from image
|
||||
BufferedImage web = Scalr.resize(image, Scalr.Method.AUTOMATIC, Scalr.Mode.AUTOMATIC, 1280, Scalr.OP_ANTIALIAS);
|
||||
BufferedImage thumbnail = Scalr.resize(image, Scalr.Method.AUTOMATIC, Scalr.Mode.AUTOMATIC, 256, Scalr.OP_ANTIALIAS);
|
||||
BufferedImage web = Scalr.resize(image, Scalr.Method.ULTRA_QUALITY, Scalr.Mode.AUTOMATIC, 1280);
|
||||
BufferedImage thumbnail = Scalr.resize(image, Scalr.Method.ULTRA_QUALITY, Scalr.Mode.AUTOMATIC, 256);
|
||||
image.flush();
|
||||
|
||||
// Write "web" encrypted image
|
||||
|
||||
Reference in New Issue
Block a user