Kartoffel0 / Mokuro2Pdf

Create pdf files with selectable text from Mokuro's manga html overlay
GNU General Public License v3.0
33 stars 3 forks source link

HELP with some error #6

Closed thiagocasti closed 6 months ago

thiagocasti commented 6 months ago

The error is not in the script, i think is just some library with mini_magick, it just dosen't recognize me png, jpg or any type of images it just throws me this:

Processing death_note_01... /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:221:in rescue in validate!':magick identify /tmp/mini_magick20240508-49032-bacb61.pngfailed with status: 1 and error: (MiniMagick::Invalid) identify: no decode delegate for this image formatPNG' @ error/constitute.c/ReadImage/746.

from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:218:in `validate!'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:131:in `block in create'
from <internal:kernel>:90:in `tap'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:130:in `create'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:34:in `read'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:108:in `block in open'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:108:in `open'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:108:in `open'
from /home/peralta/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/mini_magick-4.12.0/lib/mini_magick/image.rb:108:in `open'
from Mokuro2Pdf.rb:195:in `block (2 levels) in <main>'
from Mokuro2Pdf.rb:175:in `each'
from Mokuro2Pdf.rb:175:in `block in <main>'
from Mokuro2Pdf.rb:169:in `each'
from Mokuro2Pdf.rb:169:in `<main>'

HELP i'm not so techy so i dont know how to fix this

Kartoffel0 commented 6 months ago

Are you using Linux by any chance?

thiagocasti commented 6 months ago

Yes, i am using pop os

thiagocasti commented 6 months ago

Ok the problem is solved idk what i did, i just know i got to uninstall everything and it was a pain to uninstall imagemagick since i installed source version and then i copy your commands on the collab notebook just adding some sudo in gem: !sudo apt-get install ruby-full !sudo apt-get install imagemagick !sudo gem install prawn !sudo gem install mini_magick and it worked lol, it was my fault i just din't know how to install things

Kartoffel0 commented 6 months ago

StampNyaa_617_よつばスタジオ