}
}
-
+ if (match && !strcmp(match, "jpeg")) {
+ unsigned int x0, x1;
+ rc = data->readcb(data, head, 18);
+ if (rc == -1) return NULL;
+ x0 = (unsigned char)head[0];
+ x1 = (unsigned char)head[1];
+ data->seekcb(data, -rc, SEEK_CUR);
+ printf("Jpeg reread: %x %x\n", x0, x1);
+ }
if (!match &&
(rc == 18) &&
if (ok($fh, "opening $opts{file}")) {
binmode $fh;
my $fhimg = Imager->new;
+ Imager::log_entry("Reading file: $opts{file}\n", -1);
my $fhrc = $fhimg->read(fh=>$fh, %mopts);
if (ok(!$fhrc, "check that type is required")) {
ok ($fhimg->errstr =~ /type parameter missing/, "check for no type error");