Skip to content

Fallback meta to original image if you don't have one of the processed ones. #18

Open
@gotjosh

Description

@gotjosh

The way carrierwave works with fallback images is the following:

Let's say you have an uploader with an additional process of a thumbnail. If for some reason the thumbnail process fails it falls back to the original image. IE.

@product.image.thumbnail.url => #return the url of the original image if you don't have a thumbnail

This doesn't work for the meta. If you would do the following:

@product.image.thumbnail.width => 0

You would get 0 because the thumbnail never got processed, shouldn't it fallback to running the identify on the original image or maybe delegate the methods? I'd be happy to submit a pull request if I could be pointed in the right direction.

This clearly becomes a problem when you're testing your UI and you don't have access to your meta, because you turned processing off.

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