Skip to content

Commit

Permalink
[ADD] 파일 로딩시 누워서 불러오는 문제 / exif 데이터 관련 문제 주석 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
C4NU committed Sep 6, 2023
1 parent 7b7f490 commit 185a0de
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 4 deletions.
Binary file not shown.
Binary file added Result/A7RC-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/D750-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/G5XII-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/IMG_1787.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/M10-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/NEX5T-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/PhaseOne-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/Q3-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Result/X30-01.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions WebP_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def ConvertImageToWebP(self, filePath, savePath, saveName, loselessOpt, imageQua
filePath = filePath.replace(fileFormat, '.webp')
dest = savePath+saveName+".webp"

exifData = getattr(image.info, 'exif', None)
if not exifData:
print(f'no exif data {saveName}')
exifOpt = False
# 여기서 exif 데이터의 특정 값이 존재하지 않으면 바로 실패함 / 옵션을 선택하지 않아도 읽어오기에 무조건적으로 뻗음
#exifData = getattr(image.info, 'exif', None)
#if not exifData:
# print(f'no exif data {saveName}')
# exifOpt = False
exifOpt = False

iccProfile = image.info['icc_profile']

Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def watermarkOption(self):

#################### FUNCTIONS
def LoadFile(self, filePath):
# ISSUE: 파일 로딩할때 특정 이미지 파일이 누워서 로딩됨 / 혹은 저장할때?
icon = QtGui.QIcon(filePath)
item = QtWidgets.QListWidgetItem(icon, filePath)

Expand Down

0 comments on commit 185a0de

Please sign in to comment.