Skip to content

Latest commit

 

History

History
84 lines (75 loc) · 3.11 KB

README.md

File metadata and controls

84 lines (75 loc) · 3.11 KB

scifio-bf-compat

SCIFIO plug-in allowing the use Bio-Formats readers.

Usage

Short version: Add the following dependencies to your project:

To ensure version compatibility, you should import or extend net.imagej:pom-imagej, which manages the Bill of Materials. Doing this allows you to declare the above dependencies without explicitly specifying their respective versions.

Be aware that the first three components above are licensed under BSD-2, whereas ome:formats-gpl is licensed under the GPL, which might affect your project's licensing.

Details: Add the following blocks to your Maven POM:

<dependencyManagement>
  <dependencies>
    <!-- NB: Inherit the SCIFIO version management. -->
    <dependency>
      <groupId>net.imagej</groupId>
      <artifactId>pom-imagej</artifactId>
      <version>5.12.0</version>
    </dependency>
  </dependencies>
</dependencyManagement>
...
<dependencies>
  ...
  <dependency>
    <groupId>io.scif</groupId>
    <artifactId>scifio</artifactId>
  </dependency>
  <dependency>
    <groupId>io.scif</groupId>
    <artifactId>scifio-bf-compat</artifactId>
    <scope>runtime</scope>
  </dependency>
  <!-- The formats-bsd component adds support for open formats. -->
  <dependency>
    <groupId>ome</groupId>
    <artifactId>formats-bsd</artifactId>
    <scope>runtime</scope>
  </dependency>
  <!-- The formats-gpl component adds support for proprietary formats. -->
  <dependency>
    <groupId>ome</groupId>
    <artifactId>formats-gpl</artifactId>
    <scope>runtime</scope>
  </dependency>
  ...
</dependencies>
...
<repositories>
  <repository>
    <id>imagej.public</id>
    <url>https://maven.scijava.org/content/groups/public</url>
  </repository>
</repositories>

See the Bio-Formats supported formats table for a full breakdown of which file formats are supported by ome:formats-bsd vs. ome:formats-gpl.