Skip to content

Commit fc01580

Browse files
authored
Merge pull request #1 from Eterance/dev
Dev
2 parents 06bdf6a + 916bb2f commit fc01580

File tree

4 files changed

+46
-17
lines changed

4 files changed

+46
-17
lines changed

ImageAutoResizer/ImageBatchResizer.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows</TargetFramework>
5+
<TargetFramework>net6.0-windows7.0</TargetFramework>
66
<Nullable>enable</Nullable>
77
<UseWPF>true</UseWPF>
8+
<PublishSingleFile>true</PublishSingleFile>
9+
<SelfContained>true</SelfContained>
10+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
11+
<Authors>Eterance</Authors>
12+
<Company />
13+
<AssemblyVersion>0.1.0.0</AssemblyVersion>
14+
<FileVersion>0.1.0.0</FileVersion>
15+
<Version>0.1.0</Version>
816
</PropertyGroup>
917

1018
<ItemGroup>

ImageAutoResizer/Views/Controls/ModeControl.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
mc:Ignorable="d"
1010
d:DesignHeight="450" d:DesignWidth="800">
1111

12-
<StackPanel Orientation="Vertical">
13-
<WrapPanel Orientation="Horizontal">
12+
<StackPanel Orientation="Vertical">
13+
<!-- <WrapPanel Orientation="Horizontal">
1414
<RadioButton x:Name="FileSizeModeRadioButton"
1515
IsChecked="{Binding IsFileSizeFirstMode}"
1616
Margin="8 8 0 0"
@@ -23,14 +23,14 @@
2323
VerticalContentAlignment="Center">
2424
<Label>分辨率优先</Label>
2525
</RadioButton>
26-
</WrapPanel>
26+
</WrapPanel>-->
2727

2828
<!-- 大小优先设置 -->
2929
<StackPanel Orientation="Vertical"
3030
CanVerticallyScroll="True"
3131
Visibility="{Binding ElementName=FileSizeModeRadioButton, Path=IsChecked, Converter={StaticResource IsCheck2VisibilityConverter}}">
3232
<uc:FileSizeParamatersControl DataContext="{Binding .}"
33-
Margin="0 24 0 0"
33+
Margin="0 0 0 0"
3434
MaxWidth="600"/>
3535
<WrapPanel Orientation="Horizontal"
3636
Margin="0 24 0 0">
@@ -110,7 +110,7 @@
110110

111111

112112
<!-- 分辨率优先设置 -->
113-
<StackPanel Orientation="Vertical"
113+
<!-- <StackPanel Orientation="Vertical"
114114
Visibility="{Binding ElementName=ResModeRadioButton, Path=IsChecked, Converter={StaticResource IsCheck2VisibilityConverter}}">
115115
<uc:ResolutionParametersControl DataContext="{Binding .}"
116116
Margin="0 24 0 0"
@@ -166,7 +166,7 @@
166166
</RadioButton>
167167
</StackPanel>
168168
</StackPanel>
169-
</StackPanel>
169+
</StackPanel> -->
170170

171171

172172
<uc:ComboBoxControl Margin="0 24 0 0"

ImageAutoResizer/Views/MainWindow.xaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
mc:Ignorable="d"
1313
NoiseOpacity="0.005"
1414
ExtendViewIntoTitleBar="False"
15-
Title="ImageBatchResizer - 开发中" Height="720" Width="900" MinWidth="500" MinHeight="600">
15+
Title="ImageBatchResizer v0.1.0" Height="720" Width="900" MinWidth="500" MinHeight="600">
1616
<!-- xmlns:i https://stackoverflow.com/questions/20743961/the-name-interaction-does-not-exist-in-the-namespace-http-schemas-microsoft -->
1717

1818
<Window.Resources>
@@ -152,7 +152,7 @@
152152
<StackPanel Margin="16"
153153
HorizontalAlignment="Left"
154154
MaxWidth="600">
155-
<Label Margin="0 0 0 0">
155+
<Label Margin="0 0 0 24">
156156
<ui:TextBlock FontTypography="Subtitle" Text="模式"/>
157157
</Label>
158158
<uc:ModeControl DataContext="{Binding .}"
@@ -247,6 +247,22 @@
247247
</Grid>
248248
</Grid>
249249
</TabItem>
250+
251+
<!-- 控制台 -->
252+
<TabItem IsSelected="True">
253+
<TabItem.Header>
254+
<StackPanel Orientation="Horizontal">
255+
<ui:SymbolIcon Margin="0,0,6,0" Symbol="ToggleMultiple16" />
256+
<TextBlock Text="控制台" />
257+
</StackPanel>
258+
</TabItem.Header>
259+
<ScrollViewer VerticalScrollBarVisibility="Auto"
260+
Grid.ColumnSpan="2">
261+
<TextBox Text="{Binding FullConsoleContent, Mode=OneWay}"
262+
IsReadOnly="True">
263+
</TextBox>
264+
</ScrollViewer>
265+
</TabItem>
250266
</TabControl>
251267

252268
</Grid>

readme.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44

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

7-
## 状态
7+
Python 命令行版本:[Adaptive-Image-Resize-and-Conversion](https://github.com/Eterance/Adaptive-Image-Resize-and-Conversion)
8+
9+
## 需求
10+
11+
环境:Windows 10 及以上,64 位版本
812

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

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

13-
### 缺失的核心功能
17+
[.NET 桌面运行时 6.0.22 x64 安装包](https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-6.0.22-windows-x64-installer)
18+
19+
[最新的 .NET 6 下载页面](https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0)
20+
21+
## 状态
1422

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

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

0 commit comments

Comments
 (0)