diff options
Diffstat (limited to 'src/exporters/htmlexporter.cpp')
-rw-r--r-- | src/exporters/htmlexporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exporters/htmlexporter.cpp b/src/exporters/htmlexporter.cpp index b4c44f4..148c33b 100644 --- a/src/exporters/htmlexporter.cpp +++ b/src/exporters/htmlexporter.cpp @@ -245,16 +245,16 @@ void HTMLExporter::storePhoto( const Recipe &recipe ) photo_name = "default_photo"; } else { - image = recipe.photo.convertToImage(); + image = recipe.photo; photo_name = TQString::number(recipe.recipeID); } - TQPixmap pm = image;//image.smoothScale( phwidth, 0, TQImage::ScaleMax ); + //image.smoothScale( phwidth, 0, TQImage::ScaleMax ); TQFileInfo fi(fileName()); TQString photo_path = fi.dirPath(true) + "/" + fi.baseName() + "_photos/" + photo_name + ".png"; if ( !TQFile::exists( photo_path ) ) { - pm.save( photo_path, "PNG" ); + image.save( photo_path, "PNG" ); } } |