Skip to content

Commit

Permalink
[Fix] #95 - downSampling 기준 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Genesis2010 committed Aug 6, 2024
1 parent 8346aec commit d6ed604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Treehouse/Treehouse/Global/Extension/UIImage+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension UIImage {
kCGImageSourceCreateThumbnailFromImageAlways: true,
kCGImageSourceShouldCacheImmediately: true,
kCGImageSourceCreateThumbnailWithTransform: true,
kCGImageSourceThumbnailMaxPixelSize: maxDimensionInPixels
kCGImageSourceThumbnailMaxPixelSize: maxDimensionInPixels * 3
] as CFDictionary

guard let downsampledImage = CGImageSourceCreateThumbnailAtIndex(imageSource, 0, downsampleOptions) else {
Expand Down

0 comments on commit d6ed604

Please sign in to comment.