* This software may be freely distributed and used according to the terms
*/
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
#include "sherlock/sherlock.h"
#include "lib/base224.h"
if (!io->background_color.color_space)
io->background_color = color_white;
struct image *img;
- if (!(img = image_io_read_data(io, 0)))
+ if (!(img = image_io_read_data(io, 1)))
goto error;
- ASSERT(img->cols == ioi->thumb_cols && img->rows == ioi->thumb_rows);
DBG("Decompressed thumbnail: size=%ux%u", img->cols, img->rows);
return img;
error:
void
put_image_obj_signature(struct odes *o, struct image_signature *sig)
{
- /* signatures should be short enough to fit one attribute */
+ /* signatures should be short enough to in a single attribute */
byte buf[MAX_ATTR_SIZE];
uns size = image_signature_size(sig->len);
ASSERT(MAX_ATTR_SIZE > BASE224_ENC_LENGTH(size));