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

flatten does not copy #20

Closed
jeroen opened this issue Aug 25, 2016 · 1 comment
Closed

flatten does not copy #20

jeroen opened this issue Aug 25, 2016 · 1 comment

Comments

@jeroen
Copy link
Member

jeroen commented Aug 25, 2016

The coposite operator affects the original image, even though we set it on a copy:

library(magick)

bigdata <- image_read('http://feelgrafix.com/data_images/out/28/1004158-data.jpg')
frink <- image_read("https://jeroenooms.github.io/images/frink.png")
logo <- image_read("https://www.r-project.org/logo/Rlogo.png")
img <- image_scale(c(bigdata, logo, frink), "400x400")

image_flatten(img)
image_flatten(img, "Add")
image_flatten(img)
@jeroen
Copy link
Member Author

jeroen commented Aug 25, 2016

This workaround seems to help: 1f2aa78. For some reason copy() does not always copy :/

@jeroen jeroen closed this as completed Aug 25, 2016
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

1 participant