DevToys
97f67c98 - Image converter tool (#139)

Commit
2 years ago
Image converter tool (#139) * Added Image Converter basic structure Added Image Converter View, ViewModel, Provider and related changes * Fixed wrong reference Fixed wrong reference in ImageConversionWorkItem.cs Strings variable * Added encoder and decoder logic Added encoder and decoder logic using Windows.Graphics.Imaging * Added Save All and Save only one conversion item features * Finished save feature * Fixed JPEG and JPEG XR BitmapEncoder options issue * Fixed merge issues * Added tool in README.md * Minor fixes to solve PR comments * Added tool in PowerShell README.md documentation * Included .xaml view under Graphic folder * Added ImageConverter.resw in every language * Extracted code to StorageFileHelper.cs and added .resw to .csproj * Removed unnecessary lines * Used fire-and-forget approach in ImageConversionWorkItem constructor * Fix to solve new comments * Update ImageConverterToolViewModel renaming QueueNewConversionWorkItem method * Allowed only PNG, JPEG and BMP formats * Added await TaskScheduler.Default; in async methods * New approach ExecuteSaveAllCommandAsync method (ImageConverterToolViewModel) This will avoid use UI (foreground) thread to perform the image save process when using Save All button * Added error handler InfoBar * Set IsInfoBarOpen variable to false when closing InfoBar UI element * Modify UI elements in UI thread instead of in worker threads * Logged exceptions catched in ViewModel * ImageConversionWorkItem implemented IDisposable and fixed bug when saving all items * Logged error in ViewModel * Used only StorageFile in ImageConversionWorkItem.cs and decode image when saving * DecodeImageAsync will be executed in UI thread if saved only 1 image or in background threads if save multiple images * Performance fixes and code improvements * Removed unused property
Author
Parents
Loading