#1 2015-03-27 18:34:13

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13861

[iOS 2.0] keep original quality

Hello Hoser,

I would like to have an option to keep the original quality, with no compression, no resize.

If I take a screenshot (Home button + power button) then upload it through the app, the screenshot is obviously compressed (I have tried compression 0% and 100%). It seems that the screenshot is converted from PNG to JPEG, I don't know if it's done by the app or by iOS.

In my opinion, there should be no question of "compression" if there is no resize. The resize X% is a bit unexpected: we always resize with a parameter like "max width + max height". I think a better configuration would be:

[] resize before upload

then if you activate the option

[x] resize before upload
maximum width ===[]=== 800 pixels
maximum height ===[]=== 800 pixels
image quality =====[]= 80% (ability to go from 50 to 98)

I don't know if it's possible to do. What do you think?

Offline

 

#2 2015-03-28 02:25:29

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] keep original quality

I just did a test with taking a screen shot and uploading it:

The image from iPhoto (raw):
  Format: png
  Size: 493 KB

Image uploaded with compression set to 0% and then downloaded to my computer:
  Format: png
  Size: 288 KB

Image uploaded with compression set to 100% and then downloaded to my computer:
  Format: png
  Size: 155 KB

The iOS app converts the image from a jpg (this is the code "UIImageJPEGRepresentation(image)" and I'm surprised that when I downloaded the screenshot from Piwigo it was still in png format -- I think this is because the filename stayed png.
The reason for the JPEG conversion is because iOS devices take jpg images from their camera.

Yeah I agree with the "resize image on upload" and if checked, displaying the option for a max width or height -- it's totally possible to do. I chose not to implement that yet but chose to only put a simple % in.

Offline

 

#3 2024-11-21 10:39:30

noramila
Member
India
2023-08-29
10

Re: [iOS 2.0] keep original quality

It would be great to have an option to keep the original quality without compression or format change during uploads. If compression is needed, using a tool like image compressor can help control quality while maintaining the file size.

Last edited by noramila (2024-11-22 05:49:02)

Offline

 

#4 2024-11-25 10:40:58

cryopad
Piwigo Team
Grenoble, France
2015-11-01
197

Re: [iOS 2.0] keep original quality

By default, the iOS app does not change the original file before uploading it unless it is in a format not accepted by the Piwigo server.


If you enjoy Piwigo for iOS…
➤ We would appreciate an AppStore review.
➤ Comments, suggestions ? Tell us on GitHub…
➤ Not yet available in your language ? Help us translate it…

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact