Skip to content

Vips::Error: VipsForeignLoad: "/path/to/file.pdf" is not a known file format - installed using homebrew on macOS Ventura #3810

Closed Answered by jcupitt
imrubyist asked this question in Q&A
Discussion options

You must be logged in to vote

You need to post a complete dockerfile that I can run or I won't be able to reproduce the problem.

I tried this one:

FROM ruby:3.1.4

RUN apt-get update -qq
RUN apt install -y --no-install-recommends libvips42
RUN gem install ruby-vips

(you only need libvips42, you don't need the -dev package, and --no-install-recommends can trim a lot from the download)

I can run it like this:

$ docker build -t kevinhq . 
$ cd ~/pics
$ docker run --rm -it -v .:/data kevinhq                                                                                                     
irb(main):001:0> require 'vips'
=> true
irb(main):002:0> x = Vips::Image.new_from_file "/data/nipguide.pdf"
=> #<Image 595x842 uchar…

Replies: 7 comments 20 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@jcupitt
Comment options

@jcupitt
Comment options

@imrubyist
Comment options

@jcupitt
Comment options

@imrubyist
Comment options

Comment options

You must be logged in to vote
2 replies
@jcupitt
Comment options

@imrubyist
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@imrubyist
Comment options

@imrubyist
Comment options

@imrubyist
Comment options

@jcupitt
Comment options

Answer selected by imrubyist
@kleisauke
Comment options

@jcupitt
Comment options

@jcupitt
Comment options

@imrubyist
Comment options

Comment options

You must be logged in to vote
1 reply
@jcupitt
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #3809 on January 04, 2024 09:01.