Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
AerisG222 committed Oct 26, 2023
2 parents f3a7d51 + b17990d commit 1fd5a9b
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 200 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Version History

## 0.7.1 (10/26/2023)

- use a new pre-defined rawtherapee processing profile (Standard Film Curve ISO Low) which addresses an issue where some colors in photos were washed out
- update test scripts to reference .net7 build of application
- update container to use Fedora 38
- updated ImageSharp

## 0.7.0 (03/14/2023)

- updated to .net 7
Expand Down
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN dotnet publish -o /app -c Release -r linux-x64 --no-self-contained


# build runtime image
FROM fedora:37
FROM fedora:38

RUN dnf install -y \
dotnet-runtime-7.0 \
Expand Down
161 changes: 0 additions & 161 deletions pp3/natural.pp3

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,40 +1,28 @@
[Version]
AppVersion=5.3-544-gc2e7d924
Version=330
[Exposure]
Auto=false
HistogramMatching=false
CurveMode=FilmLike
Curve=1;0;0;0.11;0.089999999999999997;0.32000000000000001;0.42999999999999999;0.66000000000000003;0.87;1;1;

[HLRecovery]
Enabled=true
Method=Blend

[Exposure]
Auto=false
Clip=0.02
Compensation=0
Brightness=0
Contrast=0
Saturation=0
Black=0
HighlightCompr=0
HighlightComprThreshold=33
ShadowCompr=50
HistogramMatching=true
CurveMode=FilmLike
CurveMode2=WeightedStd
Curve=0;
Curve2=0;

[LensProfile]
LcMode=lfauto
UseDistortion=true
UseVignette=true
UseCA=false

[RAW]
CA=true

[Color Management]
ToneCurve=false
ApplyLookTable=true
ApplyBaselineExposureOffset=true
ApplyHueSatMap=true
DCPIlluminant=0

[RAW]
CA=true

[PostDemosaicSharpening]
Enabled=true
7 changes: 1 addition & 6 deletions src/SizePhotos/Converters/RawTherapeeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,11 @@ public Task ConvertAsync(string sourceFile, string destFile)

if (IsRawFile(sourceFile))
{
// default to a pre-specified profile (copy of "/usr/share/rawtherapee/profiles/Generic/Natural 1.pp3")
// opts.AddUserSpecifiedPp3Source(Path.Combine(AppContext.BaseDirectory, "natural.pp3"));
opts.AddUserSpecifiedPp3Source(Path.Combine(AppContext.BaseDirectory, "auto_matched_curve_iso_low.pp3"));

// now bump the contrast and saturation a bit
opts.AddUserSpecifiedPp3Source(Path.Combine(AppContext.BaseDirectory, "standard_film_curve_iso_low.pp3"));
opts.AddUserSpecifiedPp3Source(Path.Combine(AppContext.BaseDirectory, "contrast_saturation.pp3"));
}
else
{
// default to a neutral profile (generated in app)
opts.AddUserSpecifiedPp3Source(Path.Combine(AppContext.BaseDirectory, "neutral.pp3"));
}

Expand Down
4 changes: 2 additions & 2 deletions src/SizePhotos/SizePhotos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Tool to prepare photos for my website</Description>
<AssemblyTitle>SizePhotos</AssemblyTitle>
<VersionPrefix>0.7.0</VersionPrefix>
<VersionPrefix>0.7.1</VersionPrefix>
<Authors>Mike Morano &lt;mmorano@mikeandwan.us&gt;</Authors>
<TargetFramework>net7.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -23,7 +23,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.2" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta3.22114.1" />
<PackageReference Include="NExifTool" Version="0.11.0" />
<PackageReference Include="NRawTherapee" Version="0.4.1" />
Expand Down
2 changes: 1 addition & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -n -p update_test/2015/testdir -w img
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -n -p update_test/2015/testdir -w img
2 changes: 1 addition & 1 deletion test/test_invalid.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -i
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -i
2 changes: 1 addition & 1 deletion test/test_invalid2.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -r
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -r
2 changes: 1 addition & 1 deletion test/test_quiet_insert.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -q -i -c test -o x.sql -p testfiles -w img -y 2016 -r admin -r friend
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -q -i -c test -o x.sql -p testfiles -w img -y 2016 -r admin -r friend
2 changes: 1 addition & 1 deletion test/test_quiet_noop.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -q -n -p testfiles
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -q -n -p testfiles
2 changes: 1 addition & 1 deletion test/test_quiet_update.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -q -u -o x.sql -p update_test/2015/testdir -w /img
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -q -u -o x.sql -p update_test/2015/testdir -w /img
2 changes: 1 addition & 1 deletion test/test_review.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
dotnet ../src/SizePhotos/bin/Debug/net5.0/SizePhotos.dll -f -p testfiles
dotnet ../src/SizePhotos/bin/Debug/net7.0/SizePhotos.dll -f -p testfiles

0 comments on commit 1fd5a9b

Please sign in to comment.