I have 2 models - Album and AlbumImage.
Each album has albums associated with them, and they are loaded through the AlbumImageUploader class using Carrierwave.
Now I want to select an album cover for each album using existing linked album images. I need to process (crop and resize) the selected image before using it as an album cover. I have cropping and resizing functions, and I created the AlbumCoverUploader class to save this processed version of the album image.
The problem is that this time I do not use the form to upload a new image file and instead use the existing album image in the file system, and I'm not sure how to transfer this image from the AlbumImageUploader class to my AlbumCoverUploader Class.
Any ideas?
source
share