You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this feature has been requested a lot over the years, but we are in the future now so I'd like to think there's a way to do this that's smarter than the brute force approach.
What are you trying to achieve?
Ultimately what I and I believe others are wanting to achieve is specific output size, so no matter what size file we are trying to compress, we can be sure that it's below x.
Yes we can brute force it, but that's not very performant.
I'd like to think with someone a lot smarter than me could potentially use some ML magic and come up with a better approach...
Anyone?
The text was updated successfully, but these errors were encountered:
The performance of the "brute force" example you've linked to could be improved, or at least made more consistent, with the use of binary search.
Given most lossy image encoding is entropy-based, you may also have some luck by investigating either linear or polynomial regression ("AI" from the 19th century) of image entropy for a given image corpus that represents your scenario. For JPEG encoding, the higher the entropy value of an image, the lower the required quality value is likely to be in order to hit a target file size.
Feature request
I know this feature has been requested a lot over the years, but we are in the future now so I'd like to think there's a way to do this that's smarter than the brute force approach.
What are you trying to achieve?
Ultimately what I and I believe others are wanting to achieve is specific output size, so no matter what size file we are trying to compress, we can be sure that it's below
x
.Yes we can brute force it, but that's not very performant.
I'd like to think with someone a lot smarter than me could potentially use some ML magic and come up with a better approach...
Anyone?
The text was updated successfully, but these errors were encountered: