Skip to content

feat: [선물 포장뷰] - 이미지 투명 배경 저장 기능 추가#63

Merged
giljihun merged 1 commit intodevelopfrom
feature/-키링-선물뷰---이미지-저장-시-배경-투명으로-변경
Feb 9, 2026

Hidden character warning

The head ref may contain hidden characters: "feature/-\ud0a4\ub9c1-\uc120\ubb3c\ubdf0---\uc774\ubbf8\uc9c0-\uc800\uc7a5-\uc2dc-\ubc30\uacbd-\ud22c\uba85\uc73c\ub85c-\ubcc0\uacbd"
Merged

feat: [선물 포장뷰] - 이미지 투명 배경 저장 기능 추가#63
giljihun merged 1 commit intodevelopfrom
feature/-키링-선물뷰---이미지-저장-시-배경-투명으로-변경

Conversation

@giljihun
Copy link
Member

@giljihun giljihun commented Feb 9, 2026

🎯 PR 내용

선물 포장 완료 화면에서 이미지 저장 시, 배경 없이 포장 이미지/QR 카드만 저장되도록 변경

이전에, 키링 상세뷰 저장에서 투명 배경 방식으로 바꿨는데
여긴 안바꿨더군요 (리엘이 알려줌)

Before

  • 녹색 배경(greenBackground) 포함하여 저장
  • JPEG 형식으로 저장

After

  • 투명 배경으로 포장 이미지/QR만 저장
  • PNG 형식으로 저장 (투명도 유지)
  • offset(y: -40) 적용하여 저장되는 이미지가 중앙에 위치하도록 조정

기존에는 좀 아래쪽에 위치하였는데, 중앙으로 맞춰봄

📱 스크린샷 (UI 변경 시)

🔗 관련 이슈

✅ 체크리스트

  • 빌드 성공
  • 테스트 완료
  • Self-review 완료

배경 없이 포장 이미지/QR만 저장하고 싶다!
- captureCurrentPage: greenBackground 제거 → Color.clear
- UIGraphicsImageRendererFormat.opaque = false 설정
(opaque = true면 투명 영역이 검정색으로 채워진다고 하네요)
- saveImageToLibrary: JPEG → PNG 형식으로 변경
- 이미지 중앙 정렬을 위한 offset 조정 (조금 중앙으로 오게 올렸으)
@giljihun giljihun self-assigned this Feb 9, 2026
Copy link
Member

@jini-coding jini-coding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

생각보다 간단한 작업이었네요. 굿!


// 투명 배경 유지 설정
let format = UIGraphicsImageRendererFormat()
format.opaque = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 설정들을 넣어주는게 핵심이었군요!

@giljihun giljihun merged commit 873dfcf into develop Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: [키링 선물뷰] - 이미지 저장 시 배경 투명으로 변경

2 participants