Always send HD photos

This commit is contained in:
Kylmakalle 2025-07-09 15:34:17 +03:00
parent 7be7adaefe
commit 1dd6066511
3 changed files with 5 additions and 2 deletions

View File

@ -58,7 +58,7 @@
"Stories.Warning.NoticeStealth" = "%@ will not be able to see that you viewed their Story.";
"Settings.Photo.Quality.Notice" = "Quality of uploaded photos and stories.";
"Settings.Photo.SendLarge" = "Send Large Photos";
"Settings.Photo.SendLarge" = "Send HD Photos";
"Settings.Photo.SendLarge.Notice" = "Increase the side limit on compressed images to 2560px.";
"Settings.VideoNotes.Header" = "ROUND VIDEOS";

View File

@ -213,6 +213,9 @@
_cropPipe = [[SPipe alloc] init];
_captionAbovePipe = [[SPipe alloc] init];
_highQualityPhotoPipe = [[SPipe alloc] init];
// MARK: Swiftgram
_highQualityPhoto = [[NSUserDefaults standardUserDefaults] boolForKey:@"sendLargePhotos"];
}
return self;
}

View File

@ -122,7 +122,7 @@ public func fetchPhotoLibraryResource(localIdentifier: String, width: Int32?, he
if let width, let height {
size = CGSize(width: CGFloat(width), height: CGFloat(height))
} else {
if hd || SGSimpleSettings.shared.sendLargePhotos /* MARK: Swiftgram */ {
if hd {
size = CGSize(width: 2560.0, height: 2560.0)
} else {
size = CGSize(width: 1280.0, height: 1280.0)