Skip to content

Commit

Permalink
fix IO::Pic problem with older IO::GD installed - #522
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan authored and mohawk2 committed Jan 13, 2025
1 parent b7980e4 commit 753b40e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Core::dog now scales linearly with length of top dim, not O(n^2) (#421) - thank @djerius for report
- PDL::IO::Storable now also supports Sereal, JSON::MaybeXS, CBOR::XS (#510,#520) - thanks @shawnlaffan
- add ParamDesc PP key
- fix IO::Pic problem with older IO::GD installed (#522) - thanks @shawnlaffan

2.098 2025-01-03
- fix Windows build problems
Expand Down
2 changes: 1 addition & 1 deletion lib/PDL/IO/Pic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ sub init_converter_table {
$Dflags = '';
%converter = ();

if (eval {require PDL::IO::GD; 1}) {
if (eval {require PDL::IO::GD; PDL::IO::GD->can ('to_rpic') && PDL::IO::GD->can ('write_Jpeg')}) {
$converter{JPEG} = {referral => {
put => sub {
my $pdl = $_[0];
Expand Down
2 changes: 1 addition & 1 deletion t/storable.t
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ is_pdl thaw($f2), sequence(long,5), "thawed byte-swapped";
}

if (!@serialisers) {
diag "No serialisation modules installed that support the Types::Serialiser protocol, skipping those tests";
note "No serialisation modules installed that support the Types::Serialiser protocol, skipping those tests";
}

my @ndarrays = (
Expand Down

0 comments on commit 753b40e

Please sign in to comment.