Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Cropping an image increases the file size (compression ratio) #30

Closed
myii opened this issue Apr 15, 2019 · 4 comments
Closed

Cropping an image increases the file size (compression ratio) #30

myii opened this issue Apr 15, 2019 · 4 comments
Projects

Comments

@myii
Copy link

myii commented Apr 15, 2019

Transferring over from https://gitlab.com/ubports/apps/gallery-app/issues/95.

CC: @StefWe.

@StefWe
Copy link
Contributor

StefWe commented Apr 15, 2019

I have searched in ubuntu-ui-extras and found that the quality is set to 90. So it should compress the picture.

https://doc-snapshots.qt.io/qt5-5.9/qimage.html#save

bool saved = image.save(m_photo->file().filePath(),
m_photo->fileFormat().toStdString().c_str(), 90);

I don't see the why it is not working.

@StefWe
Copy link
Contributor

StefWe commented Apr 15, 2019

With -1 as quality parameter it use the same compression as the picture has before.

Screenshot_20190415_130608

Can we live with that?

@myii
Copy link
Author

myii commented Apr 15, 2019

@StefWe As mentioned in our discussion in the Telegram group, using -1 sounds like the right solution in the circumstances.

@UniversalSuperBox
Copy link
Member

Fixed by #31

OTA-9 automation moved this from To do to QA Apr 18, 2019
@UniversalSuperBox UniversalSuperBox moved this from QA to Done in OTA-9 May 7, 2019
@UniversalSuperBox UniversalSuperBox moved this from Done to QA in OTA-9 May 7, 2019
@UniversalSuperBox UniversalSuperBox moved this from QA to Done in OTA-9 May 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
OTA-9
Done
Development

No branches or pull requests

3 participants