Skip to content

Commit 09f0627

Browse files
committed
Also convert "svg" files to "png" files for hardcopy.
The existing `convert_file_to_png_for_tex` already works for that.
1 parent 1158945 commit 09f0627

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/PGalias.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ sub alias_for_tex {
230230
$resource_object->path($file_path);
231231
}
232232

233-
if ($ext eq 'gif' ? 1 : 0) {
234-
# Convert gif files to png files.
233+
if ($ext eq 'gif' || $ext eq 'svg') {
234+
# Convert gif and svg files to png files.
235235
$self->convert_file_to_png_for_tex($resource_object, $ext eq 'html' ? 'html' : 'images');
236236
} else {
237237
# Path and URI are the same in this case.
@@ -376,7 +376,7 @@ The link name is the file unique id alias.
376376
377377
Usage: C<< $pgAlias->convert_file_to_png_for_tex($resource_object, $target_directory) >>
378378
379-
Converts a "gif" file to a "png" file. The "png" file is saved in
379+
Converts a "gif" or "svg" file to a "png" file. The "png" file is saved in
380380
C<$target_directory> and the file name is the unique id alias for the
381381
C<PGresource> referenced by C<$resource_object>.
382382

0 commit comments

Comments
 (0)