hvif2png: allow larger sizes.
What if I need some high resolution rendering of icons? Also fix the error message for out of range/unparsable sizes that would show "-s" as the problematic size.
This commit is contained in:
@@ -263,8 +263,8 @@ h2p_parse_args(h2p_parameters* result, int argc, char* argv[])
|
|||||||
|
|
||||||
result->size = atoi(argv[i + 1]);
|
result->size = atoi(argv[i + 1]);
|
||||||
|
|
||||||
if (result->size <= 0 || result->size > 1024) {
|
if (result->size <= 0 || result->size > 8192) {
|
||||||
fprintf(stderr,"bad size specified; '%s'\n", argv[i]);
|
fprintf(stderr,"bad size specified; '%s'\n", argv[i + 1]);
|
||||||
h2p_fprintsyntax(stderr);
|
h2p_fprintsyntax(stderr);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user