Browse Source

density

master
Klaus Wendel 2 years ago
parent
commit
5aa12a48a9
  1. 2
      fpdf.go

2
fpdf.go

@ -3682,7 +3682,7 @@ func be16(buf []byte) int {
func (f *Fpdf) newImageInfo() *ImageInfoType {
// default dpi to 72 unless told otherwise
return &ImageInfoType{scale: f.k, dpi: 72}
return &ImageInfoType{scale: f.k, dpi: f.density}
}
// parsejpg extracts info from io.Reader with JPEG data

Loading…
Cancel
Save