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

Question / Feature Request #587

Open
Keith-Web3 opened this issue Dec 12, 2023 · 4 comments
Open

Question / Feature Request #587

Keith-Web3 opened this issue Dec 12, 2023 · 4 comments

Comments

@Keith-Web3
Copy link

I was wondering if there was a way to show an image preview of my file saved on Cloudinary. It might be made available for specific document types e.g. .pdf, images, .docx, etc. If this doesn't already exist, I hope it can be added to Cloudinary as this would make the package even more awesome.

@tamaracloudinary
Copy link

How are you uploading the files? Do you use our upload widget? You can enable crop mode in the widget so you will get a preview of the document before uploading, you can see an example here (click the Crop and upload button).

@Keith-Web3
Copy link
Author

No, I'm uploading the files manually using the NodeJS SDK. And I need the preview image in other places other than when I'm uploading. It would be cool if there could be a link like https://cloudinary-file-path/preview that contains the preview image of that file.

@tamaracloudinary
Copy link

I see, currently this is not something we support, as a workaround, you can upload the file using the NodeJS SDK as you're currently doing, and create a transformation URL to generate a preview of the uploaded file. This transformation URL will contain the necessary parameters to create a smaller or differently formatted version of the original image. For example:

https://res.cloudinary.com/your-cloud-name/image/upload/c_scale,w_200/sample.jpg

Then delete the image.

Please also feel free to suggest this on our public roadmap!

@Keith-Web3
Copy link
Author

A transformation URL? I'll check out the docs to know more about it and get back to you in case I need further assistance.
Thanks 🙂

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

No branches or pull requests

2 participants