Comments (3)
Do you try to use downsampled images for drawing? I looked at the code a bit and if I understood correctly, the full image is loaded into memory.
In UIImagePickerControllerDelegate we can use info[.imageURL] (unfortunately .imageURL available from iOS 11) and put it to apple downsample image function from WWDC 2018 (https://developer.apple.com/videos/play/wwdc2018/219 39 page in pdf)
from brightroom.
@Banannzza
Thank you.
I tried to do that. However, I think I would like to use a large image to zoom that.
And I know that will use so many memory. (but why is this so huge? around 300MB!)
But It may have a good way of drawing. Do you have any good way?
If there is no way, we have no choice.
We will use a downsampled image from UIImagePickerController or PHAsset.
And, I did not know that .imageURL
.
Definitely, we can resize that with ImageIO.
from brightroom.
@muukii Yes, image decoding can cause memory problems. I don't know better way of drawing, but if it exists I will try to find it .
from brightroom.
Related Issues (20)
- Is there a way to load remote LUT? HOT 2
- ld: library not found for -lBrightroom HOT 1
- Crash from missing asset HOT 2
- Can't assign xcassets to the main target on Xcode 11 HOT 1
- Change image in runtime HOT 3
- CIFilter outputImage: Unexpectedly found nil while unwrapping an Optional value HOT 2
- How to provide initial crop to PhotosCropViewController
- Xcode 13 Compile failed HOT 2
- Color profile is changing without applying any filter - SwiftUICropView HOT 6
- xcode 13 SPM compile error: The package product 'BrightroomEngine' cannot be used as a dependency of this target because it uses unsafe build flags. HOT 1
- Compilation error : missing required module 'VergeObjcBridge'
- How to implement a custom filter? HOT 1
- MetalImageView displays image with wrong-color if the image in DisplayP3
- Wrong Installation Guide link. HOT 1
- Crash from SwiftUIDemo App
- Crash in ImageSource.init(image:)
- Value of optional type 'CGImage??' must be unwrapped to a value of type 'CGImage?' HOT 2
- Readme error
- Flipped preview image (MetalImageView) on iOS 17 simulator HOT 2
- Unable to run Demo app in xCode simulator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brightroom.