-
Notifications
You must be signed in to change notification settings - Fork 10
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
<cld-transformation :effect="effect" />生成的url中effect无效 #162
Comments
effect我打印出来过,值没有问题
|
Hey @emoyee - what exactly are you trying to do? |
根据下拉框选择不同的风格滤镜,图片会呈现不同的效果,但是effect渲染出来的url 上有点问题 |
Hi @emoyee - Does |
Hi @emoyee - Thanks for trying that. I went ahead and set up a quick app locally to try and reproduce. In my View I just have:
I use Once I run the app, I get the following output from this view and the issue is not reproducible on my side: May I please ask you to share a CodeSandbox, CodePen or a link to a repository which contains a Vue app with the minimum amount of code needed to reproduce the issue? We can then try to run that locally or in the online environment to see the issue. |
Thanks for your reply.I need this effect to be variable,the effect value is changed, but not rendered. Test project I have released on https://github.com/emoyee/testImg. |
Hello @emoyee, thank you for providing the github link. I've created a codesandbox here: https://codesandbox.io/s/winter-cache-rsrgf8?file=/src/App.vue:0-1953 that has a working version outputting the expected effect to the console & reflecting on the rendered page. I changed the elements from an el-select / el-option to a normal select/option as the provided snippet was displaying text instead of the dropdown elements and added a couple of javascript lines to the provided snippet. Let me know if there are any clarifications needed or if anything is not as expected! |
Can you please share your updated code? |
|
Change your event function to:
|
|
You have that value hard coded, |
How can I change it? This needs an initial value, otherwise there will be errors. |
If so, the
|
Reference this sandbox https://codesandbox.io/s/lively-wood-cerp8d?file=/src/App.vue |
@emoyee You'll need to perform a transformation on the image via the URL transformations for the effect to be reflected in the https://cloudinary.com/documentation/image_transformations For example, in the case of the user selecting "Cartoonify" The URL would need to change from
Since you are utilizing Vue, this can be accomplished through the Vue SDK https://cloudinary.com/documentation/vue_image_manipulation |
你好,有收到我回复的邮件吗?已经有几天了,我并没有看到回复,请问有什么进展吗?
…------------------ 原始邮件 ------------------
发件人: "cloudinary/cloudinary-vue" ***@***.***>;
发送时间: 2022年6月10日(星期五) 凌晨3:29
***@***.***>;
***@***.******@***.***>;
主题: Re: [cloudinary/cloudinary-vue] <cld-transformation :effect="effect" />生成的url中effect无效 (Issue #162)
@emoyee You'll need to perform a transformation on the image via the URL transformations for the effect to be reflected in the img src attribute.
https://cloudinary.com/documentation/image_transformations
https://cloudinary.com/product_updates/cartoonify_effect
For example, in the case of the user selecting "Cartoonify"
The URL would need to change from
https://res.cloudinary.com/demo/image/upload/v1/docs_uploading_example/pic1_doe7kg
to
https://res.cloudinary.com/demo/image/upload/e_cartoonify:20/v1/docs_uploading_example/pic1_doe7kg
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
What current issues are you still needing help with? |
目前就只有那个effect得问题,别的没有了 |
Remember to set the effect before you load the image. |
设置了,还是渲染不上 |
代码:
<cld-transformation :effect="effect" />
生成结果:这是生成错误的url
代码:
<cld-transformation effect="art:athena" />
生成结果:这便是生成正确的url
The text was updated successfully, but these errors were encountered: