This is an automated email from the ASF dual-hosted git repository.
mraible pushed a change to branch bound-image-decoding
in repository https://gitbox.apache.org/repos/asf/roller.git
from f28e89069 Merge remote-tracking branch 'origin/master' into
bound-image-decoding
add b2be127e2 Size thumbnail subsampling from both sides and skip images
too narrow to scale
add 13f4384b0 Make thumbnails only from JPEG, PNG, GIF and BMP images
add 684bfeb5a Keep the upload working when an image can't be decoded for
its thumbnail
add 425cef57a Serve the original for the thumbnail of an image too large
to have one
add 498329f0f Close the streams the thumbnail tests open and give each
upload its own name
add 203d484ec Drop the old thumbnail and size when an image is replaced by
a file that isn't an image
No new revisions were added by this update.
Summary of changes:
CHANGES.md | 9 +-
.../business/jpa/JPAMediaFileManagerImpl.java | 79 +++++++++++++--
.../apache/roller/weblogger/pojos/MediaFile.java | 6 ++
.../rendering/servlets/MediaResourceServlet.java | 8 --
.../webapp/WEB-INF/jsps/editor/MediaFileCard.jsp | 10 +-
.../weblogger/business/MediaFileThumbnailTest.java | 110 +++++++++++++++++++--
.../business/jpa/ThumbnailSubsamplingTest.java | 73 ++++++++++++++
.../servlets/MediaResourceThumbnailTest.java | 13 ++-
8 files changed, 268 insertions(+), 40 deletions(-)
create mode 100644
app/src/test/java/org/apache/roller/weblogger/business/jpa/ThumbnailSubsamplingTest.java