This commit is contained in:
13
docs/snippets/ruby/ocr/image_extraction.md
Normal file
13
docs/snippets/ruby/ocr/image_extraction.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```ruby title="Ruby"
|
||||
require 'kreuzberg'
|
||||
|
||||
config = Kreuzberg::ExtractionConfig.new(
|
||||
images: Kreuzberg::ImageExtractionConfig.new(
|
||||
extract_images: true,
|
||||
target_dpi: 200,
|
||||
max_image_dimension: 2048,
|
||||
inject_placeholders: true, # set to false to extract images without markdown references
|
||||
auto_adjust_dpi: true
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user