Skip to content

Commit

Permalink
⚙️ Configure image magic resources for iiif_print (#871)
Browse files Browse the repository at this point in the history
related: 
- notch8/iiif_print#375

Issue: 
- #856
  • Loading branch information
orangewolf authored Nov 8, 2024
2 parents 6d07cd4 + 1525be5 commit 7a94b46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/initializers/iiif_print.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@
params.merge!(embargo_params).merge!(lease_params).merge!(visibility_params)
end
# rubocop:enable Layout/LineLength

# Optional limits for ImageMagick `identify` command.
# Set these limits if you want to control memory usage. If set to `nil` or left blank,
# ImageMagick will fall back to the defaults specified in `imagemagick-6-policy.xml`.

# If you don't want to override, leave these as `nil` or comment them out.
config.memory_limit = "3GiB" # Example setting: "512MiB"
config.map_limit = "3GiB" # Example setting: "1GiB"
config.disk_limit = "50GiB" # Example setting: "20KP"
end

require "iiif_print/split_pdfs/adventist_pages_to_jpgs_splitter"
Expand Down

0 comments on commit 7a94b46

Please sign in to comment.