This commit is contained in:
Klaus Wendel, archium GmbH 2021-03-03 13:11:56 +01:00
parent f8971f6ba0
commit 5aa12a48a9

View File

@ -3682,7 +3682,7 @@ func be16(buf []byte) int {
func (f *Fpdf) newImageInfo() *ImageInfoType { func (f *Fpdf) newImageInfo() *ImageInfoType {
// default dpi to 72 unless told otherwise // 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 // parsejpg extracts info from io.Reader with JPEG data