I have a local set of files that have to resize and then convert yo base64 (in the server side, using nodejs and without canvas support). I wonder with approach is more eficient (fast and less RAM consuming):
Or:
Thank you!
As it's have been commented: even if a image processing lib allows you to pass a base64 encoded version of an image and work on it directly, behind the scenes it will always decode the base64 into an image format, do the processing (resize) and then probably encode it again, so starting with b64 is certainly slower.
Answering the original question - in terms of fast and efficiency is better:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.