Compare commits

21 Commits
Author SHA1 Message Date
Adrien Allard b211b4aea0 Merge pull request #20 from Tichau/development
File Converter release v1.2.3
2017-04-29 16:58:25 +02:00
Adrien Allard 93b38182d5 Merge branch 'master' into development 2017-04-29 16:55:20 +02:00
Adrien Allard 82728aefba Update changelog 2017-04-29 16:51:03 +02:00
Adrien Allard 3d6315ce58 Change version number to 1.2.3 2017-04-29 16:43:47 +02:00
Tichau ef02cde9b9 Update ImageMagick to version 7.0.5 2017-04-29 16:33:23 +02:00
Tichau ead28a613d Add documentation 2017-04-29 16:33:23 +02:00
Tichau 4ee60445f0 Fixed: Issue where the scale was not applied correctly for image conversions depending on the application current language 2017-04-29 16:33:22 +02:00
Adrien Allard 409d726d35 Upgrade ghostscript to version 9.21 2017-04-29 16:33:21 +02:00
Adrien Allard cbaf6ca437 Include office library dependencies in package config (now you don't need to install office to build the project) 2017-04-29 16:33:07 +02:00
Adrien Allard 8494cb5f1e Fix typo in change log 2017-02-17 21:04:40 +01:00
Tichau 4a058052d4 Change version files for auto upgrade. 2017-02-16 19:23:08 +01:00
Adrien Allard 1de3c3e0af Change version number to 1.2.2 2017-02-16 08:00:55 +01:00
Tichau 141d113c07 Update changelog and readme 2017-02-16 08:00:45 +01:00
TheAresjej e2016f6ac2 Download FileConverter upgrade with https 2017-02-16 07:45:09 +01:00
Adrien Allard 1b7db8e9b4 Change in-app web links to https 2017-02-16 07:45:08 +01:00
Adrien Allard df5db67aa4 Change copyright date to 2017 2017-02-16 07:45:07 +01:00
Tichau d34d3cb4ce Add Portuguese translation 2017-02-16 07:45:06 +01:00
Tichau 292c9b3414 Fixed: Issue where specific culture where ignored 2017-02-16 07:45:05 +01:00
Tichau c86d1b75ce Fixed issue where file metadata were not copied when converting to aac format (github issue #15). 2017-02-16 07:45:02 +01:00
Tichau edef60c66a Update ffmpeg to version 3.2.2 2017-02-16 07:44:59 +01:00
Tichau 9204b7fb3c Fixed an issue where scale was corrupted when switching application language (github issue #5) 2017-02-16 07:43:50 +01:00
11 changed files with 42 additions and 17 deletions

No files matched your search

@@ -32,7 +32,7 @@ namespace FileConverter
{
Major = 1,
Minor = 2,
Patch = 2,
Patch = 3,
};
private readonly List<ConversionJob> conversionJobs = new List<ConversionJob>();
@@ -10,6 +10,7 @@ namespace FileConverter.ConversionJobs
public class ConversionJob_ImageMagick : ConversionJob
{
private const float BaseDpiForPdfConversion = 200f;
private const int PdfSuperSamplingRatio = 1;
private bool isInputFilePdf;
private int pageCount;
@@ -95,7 +96,7 @@ namespace FileConverter.ConversionJobs
}
Debug.Log("Density: {0}dpi.", dpi);
settings.Density = new Density(dpi);
settings.Density = new Density(dpi * PdfSuperSamplingRatio);
this.UserState = Properties.Resources.ConversionStateReadDocument;
@@ -112,8 +113,14 @@ namespace FileConverter.ConversionJobs
foreach (MagickImage image in images)
{
Debug.Log("Write page {0}/{1}.", this.CurrentOuputFilePathIndex + 1, this.pageCount);
this.ConvertImage(image, true);
if (PdfSuperSamplingRatio > 1)
{
image.Scale(new Percentage(100 / PdfSuperSamplingRatio));
}
this.ConvertImage(image, true);
this.CurrentOuputFilePathIndex++;
}
}
@@ -181,7 +188,8 @@ namespace FileConverter.ConversionJobs
switch (this.ConversionPreset.OutputType)
{
case OutputType.Png:
image.Quality = 100;
// http://stackoverflow.com/questions/27267073/imagemagick-lossless-max-compression-for-png
image.Quality = 95;
break;
case OutputType.Jpg:
@@ -5,6 +5,7 @@ namespace FileConverter
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Xml.Serialization;
@@ -378,7 +379,7 @@ namespace FileConverter
return (T)System.Enum.Parse(type, settingsValue);
}
return (T)System.Convert.ChangeType(settingsValue, type);
return (T)System.Convert.ChangeType(settingsValue, type, NumberFormatInfo.InvariantInfo);
}
public bool IsRelevantSetting(string settingsKey)
+12 -6
View File
@@ -67,22 +67,26 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Magick.NET-Q16-AnyCPU, Version=7.0.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL">
<HintPath>..\..\packages\Magick.NET-Q16-AnyCPU.7.0.2.900\lib\net40-client\Magick.NET-Q16-AnyCPU.dll</HintPath>
<HintPath>..\..\packages\Magick.NET-Q16-AnyCPU.7.0.5.502\lib\net40-client\Magick.NET-Q16-AnyCPU.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Markdown.Xaml">
<HintPath>..\..\Middleware\Markdown.Xaml.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Office.Interop.Excel.15.0.4795.1000\lib\net20\Microsoft.Office.Interop.Excel.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.Office.Interop.PowerPoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<Reference Include="Microsoft.Office.Interop.PowerPoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
<HintPath>..\..\packages\Microsoft.Office.Interop.PowerPoint.12.0.4518.1014\lib\net20\Microsoft.Office.Interop.PowerPoint.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<Reference Include="Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Office.Interop.Word.15.0.4797.1003\lib\net20\Microsoft.Office.Interop.Word.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
<Reference Include="Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
<HintPath>..\..\packages\Office.12.0.0\lib\net40\Office.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="PresentationUI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
@@ -270,7 +274,9 @@
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
+5 -1
View File
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Magick.NET-Q16-AnyCPU" version="7.0.2.900" targetFramework="net45" />
<package id="Magick.NET-Q16-AnyCPU" version="7.0.5.502" targetFramework="net45" />
<package id="Microsoft.Office.Interop.Excel" version="15.0.4795.1000" targetFramework="net45" />
<package id="Microsoft.Office.Interop.PowerPoint" version="12.0.4518.1014" targetFramework="net45" />
<package id="Microsoft.Office.Interop.Word" version="15.0.4797.1003" targetFramework="net45" />
<package id="Office" version="12.0.0" targetFramework="net45" />
<package id="WpfAnimatedGif" version="1.4.14" targetFramework="net45" />
</packages>
+6
View File
@@ -1,5 +1,11 @@
# Change Log
## Version 1.2.3
- Fixed: Issue where the scale were not working for image conversions depending on the application current language.
- Tech: Include office librairy dependencies in package config (now you don't need to install office to build the project).
- Tech: Upgrade ghostscript to version 9.21.
- Tech: Update ImageMagick to version 7.0.5.
## Version 1.2.2
- Added: Portuguese translation (thanks to Khidreal).
- Fixed: Issue where scale was corrupted when switching application language (github issue #5).
+1 -1
View File
@@ -12,7 +12,7 @@
<!-- Upgrade documentation: http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html -->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.2" Manufacturer="Adrien Allard" UpgradeCode="e3ca717b-a897-418a-bbef-5c7e35c76e4b">
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.3" Manufacturer="Adrien Allard" UpgradeCode="e3ca717b-a897-418a-bbef-5c7e35c76e4b">
<?if $(var.Platform) = x64 ?>
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
<?else ?>
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -1,4 +1,4 @@
<Version>
<Latest Major="1" Minor="2" Patch="1"/>
<URL>https://github.com/Tichau/FileConverter/releases/download/v1.2.1/FileConverter-1.2.1-x86-setup.msi</URL>
<Latest Major="1" Minor="2" Patch="2"/>
<URL>https://github.com/Tichau/FileConverter/releases/download/v1.2.2/FileConverter-1.2.2-x86-setup.msi</URL>
</Version>
+2 -2
View File
@@ -1,4 +1,4 @@
<Version>
<Latest Major="1" Minor="2" Patch="1"/>
<URL>https://github.com/Tichau/FileConverter/releases/download/v1.2.1/FileConverter-1.2.1-x64-setup.msi</URL>
<Latest Major="1" Minor="2" Patch="2"/>
<URL>https://github.com/Tichau/FileConverter/releases/download/v1.2.2/FileConverter-1.2.2-x64-setup.msi</URL>
</Version>