encode_dataset_as_vae_png
Read jpg folder, resize each image to 512x512, encode it with SD VAE, encapsulate encoded VAE latent in a native PNG image, store relevant info in PNG metadata, convert encapsulated PNG back to a latent VAE and decode back the 512x512 image