Skip to content

Commit

Permalink
Merge pull request #9 from metalkoholic/windows-fix
Browse files Browse the repository at this point in the history
handle quote on windows
  • Loading branch information
opsidao committed Oct 18, 2017
2 parents aa19854 + 67fcb9a commit 203573f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pdf_cover/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def basename
end

def build_parameters(source, device)
%W(-sOutputFile='#{destination_path}' -dNOPAUSE
-sDEVICE='#{device}' -dJPEGQ=#{@quality}
%W(-sOutputFile="#{destination_path}" -dNOPAUSE
-sDEVICE="#{device}" -dJPEGQ=#{@quality}
-dFirstPage=1 -dLastPage=1
-dGraphicsAlphaBits=#{@antialiasing}
-r#{@resolution} -q '#{source}'
-r#{@resolution} -q "#{source}"
-c quit
).join(" ")
end
Expand Down

0 comments on commit 203573f

Please sign in to comment.