Skip to content

Able to crop image but images in style format are getting saved as black block images. #60

Description

@akshay-dhobale

I followed all steps required but sometimes when I resize the cropper and save image it crops image correctly and saves correct "Original" image but small, thumbnail, large this variants of same image are getting saved as black color block.
image style types: small, medium, large, thumbnail

has_attached_file :header_image, styles: { small: "720x300#", medium: "1440x600#", large: "2880x1200#",thumbnail: "360x360#", original: {convert_options: '-strip'} }, default_url: "/assets/missing1.png", hash_data: ":class/:attachment/:id/:style", path: '/:class/:attachment/:id_partition/:style/:hash', hash_secret: PAPERCLIP_HASH_SECRET crop_attached_file :header_image, :aspect => "12:5" validates_attachment_content_type :header_image, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions