Add an option to the setup dialog "Scale New Imported Images to Fit Canvas". Previou...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 13 Nov 2008 19:54:36 +0000 (19:54 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 13 Nov 2008 19:54:36 +0000 (19:54 +0000)
commitc9582dc1cba08b936b35f36f36c0fa018a203a53
tree2abfbee205c93c43ca54be8dc3d37e3d2e11bc70
parent6d603393d410ef8f75165a435f4d638c7a66681e
Add an option to the setup dialog "Scale New Imported Images to Fit Canvas".  Previously all imported images were resized to fill the canvas so smaller images were scaled more than bigger ones.  When importing PNG files with areas of transparent pixels around the ninja parts, silently ignore as many transparent pixels as possible without affecting the render.  This can be disabled by setting environment variable SYNFIG_DISABLE_CROP_IMPORTED_IMAGES.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2193 1f10aa63-cdf2-0310-b900-c93c546f37ac
13 files changed:
synfig-core/trunk/src/modules/lyr_std/import.cpp
synfig-core/trunk/src/modules/mod_png/mptr_png.cpp
synfig-core/trunk/src/modules/mod_png/mptr_png.h
synfig-core/trunk/src/synfig/importer.h
synfig-core/trunk/src/synfig/layer_bitmap.cpp
synfig-core/trunk/src/synfig/layer_bitmap.h
synfig-studio/trunk/src/gtkmm/app.cpp
synfig-studio/trunk/src/gtkmm/app.h
synfig-studio/trunk/src/gtkmm/canvasview.cpp
synfig-studio/trunk/src/gtkmm/dialog_setup.cpp
synfig-studio/trunk/src/gtkmm/dialog_setup.h
synfig-studio/trunk/src/synfigapp/canvasinterface.cpp
synfig-studio/trunk/src/synfigapp/canvasinterface.h