Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilities/ImageTools #327

Merged
merged 6 commits into from
Nov 12, 2024
Merged

Utilities/ImageTools #327

merged 6 commits into from
Nov 12, 2024

Conversation

borut-t
Copy link
Collaborator

@borut-t borut-t commented Jun 14, 2024

A set of image tools bundled in a handy UIImage extension. Some methods depends on the Kingfisher library, therefore it needs to be installed in the project in order to leverage them.

@borut-t borut-t requested a review from a team June 14, 2024 06:54
@borut-t borut-t changed the base branch from develop to feature/multiplatform-ext June 14, 2024 06:54
Base automatically changed from feature/multiplatform-ext to develop July 19, 2024 08:14
@borut-t borut-t requested a review from a team August 1, 2024 07:08
Copy link
Collaborator

@dejanskledar dejanskledar left a comment

Choose a reason for hiding this comment

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

Godo job!

Another addition, would be to compress/reduce size to a max size, eg. if server expects an image that is max 1MB, a nice method would be

func compress(image: UIImage, toMaxKbSize size: CGFloat) throws -> Data 

Also, lets use Swift syntax with labeled parameters? Its such a great concept Swift offers, its really a shame we omit it, feels like a step back 😅

Sources/Utilities/Image Saver/ImageTools.swift Outdated Show resolved Hide resolved
Sources/Utilities/Image Saver/ImageTools.swift Outdated Show resolved Hide resolved
Sources/Utilities/Image Saver/ImageTools.swift Outdated Show resolved Hide resolved
Sources/Utilities/Image Saver/ImageTools.swift Outdated Show resolved Hide resolved
Sources/Utilities/Image Saver/ImageTools.swift Outdated Show resolved Hide resolved
@borut-t borut-t requested review from dejanskledar and a team August 1, 2024 14:44
Sources/Utilities/ImageTools/ImageTools.swift Outdated Show resolved Hide resolved
Sources/Utilities/ImageTools/ImageTools.swift Outdated Show resolved Hide resolved
Sources/Utilities/ImageTools/ImageTools.swift Outdated Show resolved Hide resolved
Copy link
Member

@ArlindDushi ArlindDushi left a comment

Choose a reason for hiding this comment

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

Great work 👌

@borut-t borut-t merged commit a643c86 into develop Nov 12, 2024
1 check passed
@borut-t borut-t deleted the utilities/image-tools branch November 12, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants