diff --git a/Projects/Modules/DesignSystem/Sources/Component/View/PiCKProfileView.swift b/Projects/Modules/DesignSystem/Sources/Component/View/PiCKProfileView.swift index 63a3d55..3eccc02 100644 --- a/Projects/Modules/DesignSystem/Sources/Component/View/PiCKProfileView.swift +++ b/Projects/Modules/DesignSystem/Sources/Component/View/PiCKProfileView.swift @@ -12,7 +12,11 @@ import Kingfisher import Core public class PiCKProfileView: BaseView { - private let profileImageView = UIImageView(image: .profile) + private let profileImageView = UIImageView().then { + $0.contentMode = .scaleToFill + $0.layer.cornerRadius = 30 + $0.clipsToBounds = true + } private let userInfoLabel = PiCKLabel( textColor: .modeBlack, font: .label1, diff --git a/Projects/Presentation/Sources/Scene/AllTab/MyPage/MyPageViewController.swift b/Projects/Presentation/Sources/Scene/AllTab/MyPage/MyPageViewController.swift index 9c043a8..6d52b1f 100644 --- a/Projects/Presentation/Sources/Scene/AllTab/MyPage/MyPageViewController.swift +++ b/Projects/Presentation/Sources/Scene/AllTab/MyPage/MyPageViewController.swift @@ -133,7 +133,7 @@ extension MyPageViewController: UIImagePickerControllerDelegate, UINavigationCon picker.dismiss(animated: true) { let image = info[UIImagePickerController.InfoKey.editedImage] as? UIImage self.profileImageView.image = image - self.profileImageData.accept(info[UIImagePickerController.InfoKey.editedImage] as? Data ?? Data()) + self.profileImageData.accept(image?.jpegData(compressionQuality: 0.1) ?? Data()) } } }