I am using imagekit to handle the custom size of uploaded images. Although it works fine to create images of custom shapes with this, I want to use Chitrakoot to resize the original image on the upload. Is it possible?
Follow the above link.
-
Make the processor you prefer for the original image (size, increase, etc.). For example, see imagekit wiki
class ResizeOriginal (processor resize): width = 640 height = 480
-
your ImageSpec Create the precanc as default (false) for this original image with those original processors
class Original (ImageSpec): Processor = [ResizeOurinal]
-
Add that image expression to your IKoptions ImageModel preprocessor.
preprocessor_spec = original
Comments
Post a Comment