You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for notifying us about this, but it seems related to the magick library, which seems to have a caching limit on the images it loads.
And we depend on magick for the image loading in the class.
However I still get an error when I try to add the image. The error is the wether I try to load the image in Rstudio or in the R terminal. However it is not the same error as before.
I am working on a shared server, so restarting is not as straightforward. What I did was reconnecting to the server via SSH and starting a new RStudio session.
In any case, I assume the system 'knows' about the settings change, as I can see them when running identify -list resource.
Activity
drighelli commentedon Jan 18, 2024
Hi Alfonso @alfonsosaera,
thanks for notifying us about this, but it seems related to the magick library, which seems to have a caching limit on the images it loads.
And we depend on magick for the image loading in the class.
How big is your image? (WxH and in Mb/Gb?)
Reference topic from the internet: https://processwire.com/talk/topic/25280-width-or-height-exceeds-limit-in-openpixelcache3911/
alfonsosaera commentedon Jan 23, 2024
Thanks for the answer @drighelli
The image is prety big, 2GB (20045 x 18433). Is it possible to increase the limit of the magick library?
Thanks
drighelli commentedon Jan 24, 2024
I really don't know, but maybe this stack overflow thread could help
https://unix.stackexchange.com/questions/329530/increasing-imagemagick-memory-disk-limits
alfonsosaera commentedon Jan 24, 2024
Thanks again for your reply.
I followed the suggestion in the answer of the stackexchange post and modified the limits of the policy.xml file.
However I still get an error when I try to add the image. The error is the wether I try to load the image in Rstudio or in the R terminal. However it is not the same error as before.
Now seems to talk about cache but the limits seem enough for me.
I guess it is not an R related issue since I can load the image perfectly using the tiff package.
Any advide is highly appreciated.
Here my session info (before using tiff package)
drighelli commentedon Jan 24, 2024
I don't know what else to suggest...
Have you also tried to restart your computer after setting the new limits?
This could be a runtime loading at the system start.
alfonsosaera commentedon Jan 25, 2024
Thanks again for your response, @drighelli.
I am working on a shared server, so restarting is not as straightforward. What I did was reconnecting to the server via SSH and starting a new RStudio session.
In any case, I assume the system 'knows' about the settings change, as I can see them when running
identify -list resource.I hope someone has an idea on how to solve this.
drighelli commentedon Jan 25, 2024
maybe you can also try to open an issue or write to the imagemagick authors