Skip to content

Commit

Permalink
Merge pull request #1 from Eterance/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Eterance authored Sep 25, 2023
2 parents 06bdf6a + 916bb2f commit fc01580
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 17 deletions.
10 changes: 9 additions & 1 deletion ImageAutoResizer/ImageBatchResizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>net6.0-windows7.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Authors>Eterance</Authors>
<Company />
<AssemblyVersion>0.1.0.0</AssemblyVersion>
<FileVersion>0.1.0.0</FileVersion>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions ImageAutoResizer/Views/Controls/ModeControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">

<StackPanel Orientation="Vertical">
<WrapPanel Orientation="Horizontal">
<StackPanel Orientation="Vertical">
<!-- <WrapPanel Orientation="Horizontal">
<RadioButton x:Name="FileSizeModeRadioButton"
IsChecked="{Binding IsFileSizeFirstMode}"
Margin="8 8 0 0"
Expand All @@ -23,14 +23,14 @@
VerticalContentAlignment="Center">
<Label>分辨率优先</Label>
</RadioButton>
</WrapPanel>
</WrapPanel>-->

<!-- 大小优先设置 -->
<StackPanel Orientation="Vertical"
CanVerticallyScroll="True"
Visibility="{Binding ElementName=FileSizeModeRadioButton, Path=IsChecked, Converter={StaticResource IsCheck2VisibilityConverter}}">
<uc:FileSizeParamatersControl DataContext="{Binding .}"
Margin="0 24 0 0"
Margin="0 0 0 0"
MaxWidth="600"/>
<WrapPanel Orientation="Horizontal"
Margin="0 24 0 0">
Expand Down Expand Up @@ -110,7 +110,7 @@


<!-- 分辨率优先设置 -->
<StackPanel Orientation="Vertical"
<!-- <StackPanel Orientation="Vertical"
Visibility="{Binding ElementName=ResModeRadioButton, Path=IsChecked, Converter={StaticResource IsCheck2VisibilityConverter}}">
<uc:ResolutionParametersControl DataContext="{Binding .}"
Margin="0 24 0 0"
Expand Down Expand Up @@ -166,7 +166,7 @@
</RadioButton>
</StackPanel>
</StackPanel>
</StackPanel>
</StackPanel> -->


<uc:ComboBoxControl Margin="0 24 0 0"
Expand Down
20 changes: 18 additions & 2 deletions ImageAutoResizer/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
mc:Ignorable="d"
NoiseOpacity="0.005"
ExtendViewIntoTitleBar="False"
Title="ImageBatchResizer - 开发中" Height="720" Width="900" MinWidth="500" MinHeight="600">
Title="ImageBatchResizer v0.1.0" Height="720" Width="900" MinWidth="500" MinHeight="600">
<!-- xmlns:i https://stackoverflow.com/questions/20743961/the-name-interaction-does-not-exist-in-the-namespace-http-schemas-microsoft -->

<Window.Resources>
Expand Down Expand Up @@ -152,7 +152,7 @@
<StackPanel Margin="16"
HorizontalAlignment="Left"
MaxWidth="600">
<Label Margin="0 0 0 0">
<Label Margin="0 0 0 24">
<ui:TextBlock FontTypography="Subtitle" Text="模式"/>
</Label>
<uc:ModeControl DataContext="{Binding .}"
Expand Down Expand Up @@ -247,6 +247,22 @@
</Grid>
</Grid>
</TabItem>

<!-- 控制台 -->
<TabItem IsSelected="True">
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<ui:SymbolIcon Margin="0,0,6,0" Symbol="ToggleMultiple16" />
<TextBlock Text="控制台" />
</StackPanel>
</TabItem.Header>
<ScrollViewer VerticalScrollBarVisibility="Auto"
Grid.ColumnSpan="2">
<TextBox Text="{Binding FullConsoleContent, Mode=OneWay}"
IsReadOnly="True">
</TextBox>
</ScrollViewer>
</TabItem>
</TabControl>

</Grid>
Expand Down
21 changes: 13 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@

这是一个用于批量自适应压缩图片大小的工具,同时兼具批量转换格式的功能。

## 状态
Python 命令行版本:[Adaptive-Image-Resize-and-Conversion](https://github.com/Eterance/Adaptive-Image-Resize-and-Conversion)

## 需求

环境:Windows 10 及以上,64 位版本

仍在摸鱼开发中( ̄o ̄) . z Z。因为核心功能仍未完成,所以暂不提供 Release
虽然从使用的库而言,在Windows 7 及以上的版本中核心功能可以使用,但是 UI 可能会有异常

若确有急需,请自行使用 Visual Studio 2022 编译,或者使用 Python 版本:[Adaptive-Image-Resize-and-Conversion](https://github.com/Eterance/Adaptive-Image-Resize-and-Conversion)
运行时:.NET 桌面运行时 6 及以上,64 位版本

### 缺失的核心功能
[.NET 桌面运行时 6.0.22 x64 安装包](https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-6.0.22-windows-x64-installer)

[最新的 .NET 6 下载页面](https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0)

## 状态

- 分辨率优先
- 更多信息的待处理图像面板(如处理前后的大小、分辨率,处理失败原因的信息)
- 供高级用户使用的信息输出面板
- 错误处理
仍在摸鱼开发中( ̄o ̄) . z Z。

### 计划的非核心功能(可能永远也不会实现)

Expand Down

0 comments on commit fc01580

Please sign in to comment.