def resolve_transform_type(type, accept)
      find_best_mime_type_match(accept || '*/*', [type].compact + config[:transformers][type].keys)
    end
def resolve_transform_type(type, accept)
      find_best_mime_type_match(accept || '*/*', [type].compact + config[:transformers][type].keys)
    end
Internal: Resolve target mime type that the source type should be
 transformed to.

 type   - String from mime type
 accept - String accept type list (default: '*/*')

 Examples

   resolve_transform_type('text/plain', 'text/plain')
   # => 'text/plain'

   resolve_transform_type('image/svg+xml', 'image/png, image/*')
   # => 'image/png'

   resolve_transform_type('text/css', 'image/png')
   # => nil

 Returns String mime type or nil is no type satisfied the accept value.