feat: Add EXIF data removal option and update related UI bindings
Some checks failed
Build Windows Avalonia / build (push) Failing after 2m32s
Some checks failed
Build Windows Avalonia / build (push) Failing after 2m32s
This commit is contained in:
parent
e9142df97c
commit
fc0598e2fb
10 changed files with 104 additions and 72 deletions
|
|
@ -29,6 +29,7 @@
|
|||
<CheckBox Content="Aggiorna sottodirectory" IsChecked="{Binding UpdateSubdirectories}" />
|
||||
<CheckBox Content="Crea sottocartelle" IsChecked="{Binding CreateSubfolders}" />
|
||||
<CheckBox Content="Sovrascrivi immagini" IsChecked="{Binding OverwriteImages}" />
|
||||
<CheckBox Content="Rimuovi dati EXIF" IsChecked="{Binding RemoveExifData}" />
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Text="Elaborazione" FontWeight="Bold" />
|
||||
|
|
|
|||
|
|
@ -1012,6 +1012,17 @@ namespace ImageCatalog_2
|
|||
}
|
||||
}
|
||||
|
||||
private bool _removeExifData;
|
||||
public bool RemoveExifData
|
||||
{
|
||||
get => _removeExifData;
|
||||
set
|
||||
{
|
||||
_removeExifData = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private bool _updateSubdirectories;
|
||||
public bool UpdateSubdirectories
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ public class DataModelMappingProfile : Profile
|
|||
// Boolean flags
|
||||
.ForMember(dest => dest.UsaRotazioneAutomatica, opt => opt.MapFrom(src => src.AutomaticRotation))
|
||||
.ForMember(dest => dest.UsaForzaJpg, opt => opt.MapFrom(src => src.ForceJpeg))
|
||||
.ForMember(dest => dest.RemoveExifData, opt => opt.MapFrom(src => src.RemoveExifData))
|
||||
.ForMember(dest => dest.TestoNome, opt => opt.MapFrom(src => src.ShowPhotoNumber))
|
||||
.ForMember(dest => dest.NomeData, opt => opt.MapFrom(src => src.ShowDate))
|
||||
.ForMember(dest => dest.UsaOrarioTestoApplicare, opt => opt.MapFrom(src => src.AddTime))
|
||||
|
|
|
|||
|
|
@ -197,6 +197,10 @@ namespace ImageCatalog_2.Models
|
|||
[XmlElement("GeneraleForzaJpg")]
|
||||
public bool ForceJpeg { get; set; }
|
||||
|
||||
[JsonPropertyName("RemoveExifData")]
|
||||
[XmlElement("GeneraleRimuoviExif")]
|
||||
public bool RemoveExifData { get; set; }
|
||||
|
||||
[JsonPropertyName("AutomaticRotation")]
|
||||
[XmlElement("GeneraleRotazioneAutomatica")]
|
||||
public bool AutomaticRotation { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue