Skip to content

Commit

Permalink
compress binary image
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 19, 2022
1 parent d4be270 commit 09442a5
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion PerlMagick/t/cgm/read.t
Expand Up @@ -16,5 +16,5 @@ require 't/subroutines.pl';

chdir 't/cgm' || die 'Cd failed';

testReadCompare('CGM:input.cgm', '../reference/cgm/read.miff', q//, 0.0 0.0);
testReadCompare('CGM:input.cgm', '../reference/cgm/read.gif', q//, 0.0 0.0);

Binary file added PerlMagick/t/reference/cgm/read.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed PerlMagick/t/reference/cgm/read.miff
Binary file not shown.
Binary file added PerlMagick/t/x11/congrats.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions PerlMagick/t/x11/congrats.miff

This file was deleted.

2 changes: 1 addition & 1 deletion PerlMagick/t/x11/write.t
Expand Up @@ -19,7 +19,7 @@ chdir 't/x11' || die 'Cd failed';
#
if ( 0 && defined($ENV{'DISPLAY'}) && ($^O ne 'MSWin32') ) {
$image=Image::Magick->new;
$x=$image->ReadImage('congrats.miff');
$x=$image->ReadImage('congrats.gif');
if( "$x" ) {
print "not ok $test\n";
} else {
Expand Down
2 changes: 1 addition & 1 deletion coders/heic.c
Expand Up @@ -226,7 +226,7 @@ static MagickBooleanType ReadHEICExifProfile(Image *image,
offset|=(unsigned int) (*(exif_profile+2)) << 8;
offset|=(unsigned int) *(exif_profile+3);
offset+=4;
if (offset < length-4)
if (offset < (length-4))
{
length-=offset;
profile=BlobToStringInfo(exif_profile+offset,(size_t) length);
Expand Down

0 comments on commit 09442a5

Please sign in to comment.