You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImageSizeLimitation accepting a double representing the maximum file size the image should be compressed to
Image compression function // already existing in one of our other projects
Random.image.prefs -- a setter / getter for prefs config & persistence / override
Random.image.with(_ format: ImageFormat)
Random.image.compressed(_ to: ImageCompressionLimit)
Random.image.limited(to fileSize: Double)
Save any images for a session to the /tmp/ directory
An option to specify whether or not to save the image permanently to the documents directory
An option to return all random images currently present in either /tmp/ or /documents
// TODO: evaluate a RandomImage object & properties vs extending UIImage
Random.image.localUrl returning the location on-device & from the correct bundle
Random.image.sourceUrl returning the original source
Random.image.extension returning the extension of the file type as a String for UniversalType indentification use with CoreMobileServices & drag / drop features\
Random.image.name returning only the source filename excluding extension
Random.image.fileName returning the filename including the extension
Add support for:
// TODO: evaluate a RandomImage object & properties vs extending UIImage