Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use name of processing directive as original_name attr of emitted file. #72

Open
grosscol opened this issue Aug 7, 2015 · 0 comments
Open

Comments

@grosscol
Copy link
Member

grosscol commented Aug 7, 2015

For the default processors: image, audio, video, document

Pass the name of the directive responsible for the derivative (e.g. thumbnail) as the original_name on the derivative file that gets emitted to output_file_service.call. This can be a convenience to downstream uses. The original_name is currently set to "derivative" and was previously nil.

The original_name attribute of the file passed to output_file_service.call should be the name of the directive that caused the file to be generated. For example:
transform_file :original_file, thumbnail: { format: 'jpg', size: '338x493' }
should eventually pass a file to the output_file_service that has the attribute original_name set as "thumbnail".

Related to #70.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant