Block text on small PNG images

This commit is contained in:
hooper114 2010-01-28 18:48:42 +00:00
parent 1d9cbbc00d
commit 984395311c

View File

@ -664,6 +664,7 @@ int ZBarcode_Print(struct zint_symbol *symbol, int rotate_angle)
#ifndef NO_PNG #ifndef NO_PNG
if(!(strcmp(output, "PNG"))) { if(!(strcmp(output, "PNG"))) {
if(symbol->scale < 1.0) { symbol->text[0] = '\0'; }
error_number = png_handle(symbol, rotate_angle); error_number = png_handle(symbol, rotate_angle);
} else { } else {
#endif #endif