Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting images to max 350KB #26

Closed
jwillmer opened this issue May 29, 2018 · 4 comments
Closed

Converting images to max 350KB #26

jwillmer opened this issue May 29, 2018 · 4 comments

Comments

@jwillmer
Copy link

I have a folder with images of different size and try to convert the images that are greater then 350KB into something around 350KB. I know I can't set output file size but I tried with specifying the min file size before processing and to limit the resolution in order to get to my requirements. The problem is that I get the following output if I try to run it in the image folder:

imgp -akx 1600 -s 358400
> use --enlarge is to scale > 100%
@jarun
Copy link
Owner

jarun commented May 29, 2018

1600 is the percentage here. To enlarge more than 100% you'll have to use the --enlarge option.

I believe you want to pass a resolution. So probably something like: 1600x900?

I will fix the message shortly.

@jarun jarun closed this as completed in a87e763 May 29, 2018
@jwillmer
Copy link
Author

Why do I need to use something like 1600x900 for the X resolution? As I understand the manual text you can put in a number 250 for X or a percentage 15%. I don't want to specify a Y

@jarun
Copy link
Owner

jarun commented May 29, 2018

No.

The manual clearly says:

-x res, --res res output resolution in HxV or percentage

-x is the short form of --res.

@jarun
Copy link
Owner

jarun commented May 29, 2018

I don't want to specify a Y

Ahh, to do that see example 5. You have to specify:

imgp -akx 1600x0 -s 358400

@lock lock bot locked and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants