Skip to content

Commit 1cb277d

Browse files
author
Kevin Milner
committed
added PNG warnings
1 parent 08cfe39 commit 1cb277d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/scratch/kevin/latex/LaTeXUtils.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,10 +874,17 @@ public static void reorganizeFiguresForSSA(File inputTexFile, File outputDir) th
874874
File tifFile = new File(figInFile.getParentFile(), inPrefix+".tif");
875875
if (!tifFile.exists())
876876
tifFile = new File(figInFile.getParentFile(), inPrefix+".tiff");
877+
System.out.flush();
877878
if (tifFile.exists()) {
878879
System.out.println("\tAlso copying TIF");
880+
System.err.println("\tWARNING: make sure you converted it so that the metadata thinks it's "
881+
+ "300 DPI, otherwise they might get confused and send it back: convert figure.png -density 300 figure.tif");
879882
Files.copy(tifFile, new File(outputDir, outPrefix+".tif"));
883+
} else {
884+
System.err.println("\tWARNING: SSA arbitrarily discriminates agains PNGs and won't accept them! "
885+
+ "Submit TIFs also, and convert with density set to 300: convert figure.png -density 300 figure.tif");
880886
}
887+
System.err.flush();
881888
}
882889

883890
String newLine = beforePath+outName+afterPath;

0 commit comments

Comments
 (0)