File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
377377Usage: 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
380380C<$target_directory > and the file name is the unique id alias for the
381381C<PGresource > referenced by C<$resource_object > .
382382
You can’t perform that action at this time.
0 commit comments