Skip to content

Commit

Permalink
bugfix for batch exporter with spaces in file names
Browse files Browse the repository at this point in the history
  • Loading branch information
biovoxxel committed Apr 6, 2023
1 parent c0ef1a5 commit 82bafcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion biovoxxel-figure-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.biovoxxel</groupId>
<artifactId>BioVoxxel_Figure_Tools</artifactId>
<version>1.13.0</version>
<version>1.13.1</version>
<name>BioVoxxel Figure Tools</name>
<description>The SVG Exporter is meant to export images and all related overlays in images, embedd images and objects in SVG files to enable loss-less scalability of scientific data. The Create Framed Inset Zoom function allows to create scaled copies of an image area with a certain integer zoom factor to prevent pixel alterations but keeping the original scaling information to allow proper scale bar addition.
The metadata recorder (Meta-D-Rex) records processing steps image-specific and saves them in the image's header to reproducibly store image processing steps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ public static File getSvgFile(ImagePlus imp, File file) throws NullPointerExcept
String filePath = null;

if (file.isDirectory()) {
filePath = file.getPath() + File.separator + imp.getShortTitle() + ".svg";

String originalImageTitle = imp.getTitle();
if (originalImageTitle.lastIndexOf(".") != -1) {
originalImageTitle = originalImageTitle.substring(0, originalImageTitle.lastIndexOf("."));
}

filePath = file.getPath() + File.separator + originalImageTitle + ".svg";
} else {

filePath = file.getAbsolutePath();
Expand Down

0 comments on commit 82bafcd

Please sign in to comment.