Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CoffeeTracker/CoffeeTracker/Beans/BeanModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct BeanModel: Identifiable, Hashable {
newBean.roastedOn = roastedOn
newBean.boughtOn = boughtOn
newBean.notes = notes
newBean.beanPhoto = image.pngData()
newBean.beanPhoto = image.jpegData(compressionQuality: 1)

self.objectID = newBean.objectID

Expand Down Expand Up @@ -58,7 +58,7 @@ struct BeanModel: Identifiable, Hashable {
object.roastedOn = roastedOn
object.boughtOn = boughtOn
object.notes = notes
object.beanPhoto = image.pngData()
object.beanPhoto = image.jpegData(compressionQuality: 1)
try context.save()
}
} catch {
Expand Down