heic files(ios system) cannot be read by magick packages afeter deploying to shiny.app.io

I want to to allow users to upload Images (including both jpg and heic formats by ios system) in shiny. I tried to use the code by jeroen https://gist.github.com/jeroen/bd1d0a30e7184a5320695ee2bda12c70. It worked nicely in my Ubuntu system, but after I deployed to shiny.app.io, the heic files can not be read and shown. The error messages are as follows:

2022-08-26T01:51:40.098029+00:00 shinyapps[6852328]: Container event from container-7109273: start
2022-08-26T01:51:45.097930+00:00 shinyapps[6852328]: Running on host: cd9df5fdf5f8
2022-08-26T01:51:45.098004+00:00 shinyapps[6852328]: Server version: 2022.08.0
2022-08-26T01:51:45.098070+00:00 shinyapps[6852328]: LANG: C.UTF-8
2022-08-26T01:51:45.098135+00:00 shinyapps[6852328]: Working directory: /srv/connect/apps/heic_test
2022-08-26T01:51:45.098187+00:00 shinyapps[6852328]: Running content using the current R environment
2022-08-26T01:51:45.098244+00:00 shinyapps[6852328]: R version: 4.2.1
2022-08-26T01:51:45.098371+00:00 shinyapps[6852328]: httpuv version: 1.6.5
2022-08-26T01:51:45.098304+00:00 shinyapps[6852328]: shiny version: 1.7.2
2022-08-26T01:51:45.098442+00:00 shinyapps[6852328]: rmarkdown version: (none)
2022-08-26T01:51:45.098491+00:00 shinyapps[6852328]: knitr version: (none)
2022-08-26T01:51:45.098542+00:00 shinyapps[6852328]: jsonlite version: 1.8.0
2022-08-26T01:51:45.098598+00:00 shinyapps[6852328]: RJSONIO version: (none)
2022-08-26T01:51:45.098747+00:00 shinyapps[6852328]: Using pandoc: /opt/connect/ext/pandoc/2.16
2022-08-26T01:51:45.098644+00:00 shinyapps[6852328]: htmltools version: 0.5.3
2022-08-26T01:51:45.098696+00:00 shinyapps[6852328]: reticulate version: (none)
2022-08-26T01:51:45.098852+00:00 shinyapps[6852328]: Using jsonlite for JSON processing
2022-08-26T01:51:45.098900+00:00 shinyapps[6852328]:
2022-08-26T01:51:45.098967+00:00 shinyapps[6852328]: Starting R with process ID: '25'
2022-08-26T01:51:45.099030+00:00 shinyapps[6852328]: Shiny application starting ...
2022-08-26T01:51:45.099097+00:00 shinyapps[6852328]:
2022-08-26T01:51:45.099156+00:00 shinyapps[6852328]: Listening on
2022-08-26T01:51:46.129685+00:00 shinyapps[6852328]: Linking to ImageMagick
2022-08-26T01:51:46.129732+00:00 shinyapps[6852328]: Enabled features: fontconfig, freetype, fftw, lcms, pango, webp, x11
2022-08-26T01:51:46.129770+00:00 shinyapps[6852328]: Disabled features: cairo, ghostscript, heic, raw, rsvg
2022-08-26T01:51:46.129816+00:00 shinyapps[6852328]: Using 16 threads
2022-08-26T01:51:47.097859+00:00 shinyapps[6852328]: Warning: The renderImage output named 'img' is missing the deleteFile argument; as of Shiny 1.5.0, you must use deleteFile=TRUE or deleteFile=FALSE. (This warning will become an error in a future version of Shiny.)
2022-08-26T01:52:30.097816+00:00 shinyapps[6852328]: Warning: Error in magick_image_readpath: R: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/560

But in my local environment, I used the codestr(magick::magick_config()), it showed the heic files can be read.
heic : logi TRUE
jpeg : logi TRUE

My system information:

sysname release
"Linux" "5.15.0-46-generic"
version nodename
"#49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022" "mhchan-virtual-machine"
machine login
"x86_64" "mhchan"

The local magick package version:

Linking to ImageMagick
Enabled features: fontconfig, freetype, fftw, heic, lcms, pango, webp, x11
Disabled features: cairo, ghostscript, raw, rsvg
Using 2 threads

How to let the heic files can be read by shiny.app.io? Thanks a lot.