A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/coobird/thumbnailator/wiki/Changes below:

Changes · coobird/thumbnailator Wiki · GitHub

Thumbnailator 0.4.20 (June 28, 2023)

This release addresses the following issue:

Thumbnailator 0.4.19 (December 31, 2022)

This release addresses the following issue:

Thumbnailator 0.4.18 (October 23, 2022)

This release addresses the following issue:

Thumbnailator 0.4.17 (February 11, 2022)

This release fixes a performance issue introduced in 0.4.16. Unnecessary calls to Arrays.toString in debug logging calls were removed.

The performance impact from the problem in 0.4.16 was negligible (less than 0.5%) in simulated workloads. Therefore, the impact of this fix is reducing unnecessary object allocation.

Thumbnailator 0.4.16 (January 2, 2022)

This release addresses the following issue:

Thumbnailator 0.4.15 (December 5, 2021)

This release addresses the following issues:

Thumbnailator 0.4.14 (March 11, 2021) Thumbnailator 0.4.13 (October 17, 2020)

This release addresses the following issues:

Thumbnailator 0.4.12 (August 16, 2020)

This release addresses the following issues:

Thumbnailator 0.4.11 (February 24, 2020)

This release addresses the following issues:

Thumbnailator 0.4.10 (February 23, 2020)

This release addresses the following issues:

Thumbnailator 0.4.9 (February 11, 2020)

This release addresses the following issues:

Thumbnailator 0.4.8 (December 1, 2014)

This release is a very minor update which includes a workaround to attempt to reduce the likeliness of OutOfMemoryErrors from occurring. (Refer to the "OutOfMemoryError Workaround" section for details.)

In addition, the build tooling for Thumbnailator has been changed from Ant to Maven. (Issue 68) This has necessitated major re-arrangement of source files to conform with the Maven project layout.

Other minor changes include updating an out-of-date comment about implementation in the Thumbnailator class (Issue 68) and added line number information to the Thumbnailator JAR file to assist in debugging. (Issue 71)

Thumbnailator 0.4.8 is available via Maven, and JAR files can be downloaded from The Central Repository.

OutOfMemoryError Workaround

Issues around OutOfMemoryErrors have been recognized from the early stages of development of Thumbnailator. (Issue 1)

However, to fundamentally address the issue requires some dramatic design changes to the core parts of Thumbnailator which would take some time and would affect many internal parts of the library. Such changes would take time before being implemented, a temporary workaround has been added to Thumbnailator 0.4.8 to reduce the likeliness of OutOfMemoryErrors. (Issue 69)

The workaround is not enabled by default, as it can negatively affect the quality of the final image, and has not been extensively tested, and will not necessarily avoid OutOfMemoryErrors.

The workaround can be enabled by one of the following ways:

  1. Starting the JVM with an argument -Dthumbnailator.conserveMemoryWorkaround=true, or
  2. By setting a system property key thumbnailator.conserveMemoryWorkaround with the value true.

With the workaround enabled, a smaller version of the source image will be used to reduce memory usage, under the following conditions:

This workaround should not be considered a part of the Thumbnailator's public API. This workaround will be removed when its no longer considered useful by the author, therefore, code invoking Thumbnailator should not depend upon this workaround being always present.

Thumbnailator 0.4.7 (December 23, 2013)

This release added an user-requested feature (Issue 51) to change the output directory of the thumbnails when using the toFiles(Rename) or asFiles(Rename) method.

The following methods have been added:

Thumbnailator 0.4.6 (September 6, 2013)

This release addresses the following issues:

Changes to the LICENSE file

A change has been made to the location of the LICENSE file.

Originally, the LICENSE file was located in the resources directory, but it has been moved to the root.

In addition, the LICENSE file has been added to the META-INF directory of the JAR files being distributes via the downloads and via the Maven Central repository.

Thumbnailator 0.4.5 (June 30, 2013)

This release addresses an issue where the Exif orientation metadata was not being used in the Thumbnailator.createThumbnail methods. (Issue 43)

Thumbnailator 0.4.4 (May 23, 2013)

This release fixes a bug which causes OutOfMemoryErrors when running Thumbnailator on the latest versions of Java 6 and 7 -- Java 6 Update 45 and Java 7 Update 21. (Issue 42)

Many thanks goes out to Vladimir Shomin, Will Tran and others for providing valuable information in tackling this problem.

Thumbnailator 0.4.3 (January 2, 2013) Added Exif Orientation support

This release adds support for using the Exif metadata to properly orient thumbnails. (Issue 13, Issue 27)

Now, the default behavior is to use the Exif metadata to determine the correct orientation of the thumbnail.

However, this behavior can be overridden by disabling the usage of theExif metadata by calling the useExifOrientation method with false as the argument.

In addition, the message included in the IOException thrown when an error occurs while processing has been changed to better indicate what had occurred. (Issue 27)

Thumbnailator 0.4.2 (May 6, 2012)

This release fixes an issue where the thumbnails are given incorrect file names when using the Rename.SUFFIX_DOT_THUMBNAIL or Rename.SUFFIX_HYPHEN_THUMBNAIL rename option, if the original file name contains multiple "." characters. (See Issue 36 for details.)

Thumbnailator 0.4.1 (April 2, 2012)

This release changes the behavior of deciding the size of the thumbnail.

Up to Thumbnailator 0.4.0, the code used to determine the size of the thumbnail was rounding down (in other words, truncating) the dimensions. For example, if the new dimension was calculated to be 15.4 or 15.6, the resulting dimension would both be 15.

Also, there were instances where the dimension(s) of the thumbnail could become 0, leading to an IllegalArgumentException being thrown when attempting to make a thumbnail.

From Thumbnailator 0.4.1, the code has been revised to round to the closest integer by using the Math.round method. This means that if the new dimension was calculated to be 15.4 the resulting dimension would both be 15, while a new dimension of 15.6 would result in the dimension being 16.

Also, the minimum size of a thumbnail's dimension has been specified to be one. Therefore, under conditions which could lead to the thumbnail having a dimension of zero, the dimension will be promoted to 1, therefore, the aspect ratio of a thumbnail may not be necesarily maintained.

The following summarizes the changes in thumbnail size between previous versions of Thumbnailator and the current version when using the builder interface* :

From a original image with dimensions 100 x 106:

version size after .size(10, 10) size after .scale(0.1) before 0.4.1 10 x 10 10 x 10 0.4.1 10 x 11 10 x 11

From a original image with dimensions 100 x 104:

version size after .size(10, 10) size after .scale(0.1) before 0.4.1 10 x 10 10 x 10 0.4.1 10 x 10 10 x 10

From a original image with dimensions 100 x 6:

version size after .size(10, 10) size after .scale(0.1) before 0.4.1 IllegalArgumentException IllegalArgumentException 0.4.1 10 x 1 10 x 1

* The builder interface refers to the use of the Thumbnails class as the entry point when making thumbnails, such as in the code below:

Thumbnails.of("path/to/image")
    .size(10, 10)
    .toFile("path/to/thumbnail");

The specification of the following classes have been changed in order to implement the changes of calculating the size of the thumbnails:

Thumbnailator 0.4.0 (February 11, 2012)

This release introduces new functionality and minor changes to the API. Please note that upgrading to the Thumbnailator 0.4.0 may require changing to existing code.

Although the from...(Collection) method have been removed, the from...(Iterable) methods should be functionally equivalent for most scenarios. For example, using a List as the argument of the from... methods will work the same as before.

The below code will work under Thumbnailator 0.3.x and 0.4.x without any modifications:

List<String> filenames = new ArrayList<String>();
filenames.add("path/to/image1.jpg");
filenames.add("path/to/image2.jpg");

Thumbnails.of(filenames)
    .size(200, 200)
    .toFiles(Rename.PREFIX_DOT_THUMBNAIL);

For example, resizing the image from 240x200 to 100x100 using the crop method would result in the following:

Thumbnailator 0.3.10 (September 4, 2011)

Added the scale(double, double) method to create thumbnails by specifying the scaling factors for the width and height independently. This feature implements the feature request in Issue 19.

Thumbnailator 0.3.9 (August 13, 2011) Thumbnailator 0.3.8 (July 30, 2011) Thumbnailator 0.3.7 (July 24, 2011)

Added the allowOverwrite(boolean) to specify the behavior of whether or not to overwrite existing files when creating thumbnails.

The allowOverwrite(boolean) method will affect the behavior of the following methods:

Some changes have been made to the behavior of the methods listed above with respect to handling files which have not been written due to the destination file existing at the time the thumbnails were being produced.

Thumbnailator 0.3.6 (July 9, 2011) Thumbnailator 0.3.5 (June 18, 2011)

A feature has been added to create a thumbnail by only specifying either the width or height, as requested in Issue 12.

The feature will use the specified width or height (via the width and height methods) as the constraint, and create a thumbnail which preserved the aspect ratio of the original image.

For example, resizing a 400x300 image with the width constraint specified to 200, the thumbnail will be 200x150.

The code to perform the resize will be as follows:

Thumbnails.of("/path/to/image-400x300")
    .width(200)
    .toFile("/path/to/thumbnail-200x150")

The following methods were added to the Thumbnails fluent interface:

Thumbnailator 0.3.4 (May 3, 2011)

It is now possible to specify the source region from which a thumbnail is produced, as requested in Issue 6.

For example, creating a 200x200 thumbnail from the center 400x400 region of the source image could be written like the following:

Thumbnails.of("/path/to/image")
    .sourceRegion(Positions.CENTER, 400, 400)
    .size(200, 200)
    .toFile("/path/to/thumbnail")

The following methods were added to the Thumbnails fluent interface:

In order to implement the source region selection feature, new interfaces and classes were added to the net.coobird.thumbnailator.geometry package, and some retrofitting were done to classes such as ThumbnailParameter and the ImageSource subclasses.

The additions to Thumbnailator are backward compatible, and should not affect code written against the Thumbnailator 0.3.x API.

Thumbnailator 0.3.3 (April 30, 2011) Thumbnailator 0.3.2 (March 21, 2011) Thumbnailator 0.3.1 (February 18, 2011) Thumbnailator 0.3.0 (January 9, 2011)

This release introduces significant new functionality and changes to the API. Please note that upgrading to the Thumbnailator 0.3.0 may require changing to existing code. (In most use cases, changes will be limited to updating import statements and adding exception handling. See below for details.)

The following are backward incompatibles changes:

Thumbnailator 0.2.9 (December 29, 2010) Thumbnailator 0.2.8 (December 22, 2010) Thumbnailator 0.2.7 (December 4, 2010) Thumbnailator 0.2.6 (November 6, 2010) Thumbnailator 0.2.5 (October 27, 2010) Thumbnailator 0.2.4 (October 10, 2010) Thumbnailator 0.2.3 (October 9, 2010) Thumbnailator 0.2.2 (October 3, 2010) Thumbnailator 0.2.1 (September 23, 2010) Thumbnailator 0.2.0 (September 21, 2010)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4