<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://kono.phpage.fr/index.php?action=history&amp;feed=atom&amp;title=Traitement_d%27image_%28PowerShell%29</id>
	<title>Traitement d&#039;image (PowerShell) - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://kono.phpage.fr/index.php?action=history&amp;feed=atom&amp;title=Traitement_d%27image_%28PowerShell%29"/>
	<link rel="alternate" type="text/html" href="https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;action=history"/>
	<updated>2026-10-17T18:45:21Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3022&amp;oldid=prev</id>
		<title>Fylip22 : /* Redimensionnement d&#039;image JPEG en 1024 */</title>
		<link rel="alternate" type="text/html" href="https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3022&amp;oldid=prev"/>
		<updated>2021-12-06T23:30:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Redimensionnement d&amp;#039;image JPEG en 1024&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 7 décembre 2021 à 01:30&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Ligne 3 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 3 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Redimensionnement d&amp;#039;image JPEG en 1024 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Redimensionnement d&amp;#039;image JPEG en 1024 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Script à améliorer :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Script à améliorer :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* gérer le traitement récursif sur les sous-dossiers ;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ne pas redimensionner les images déjà en 1024 ou taille inférieur ;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ne pas redimensionner les images déjà en 1024 ou taille inférieur ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* en fonction d&amp;#039;une fourchette de date (notion d&amp;#039;obsolescence) ;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* en fonction d&amp;#039;une fourchette de date (notion d&amp;#039;obsolescence) ;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fylip22</name></author>
	</entry>
	<entry>
		<id>https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3021&amp;oldid=prev</id>
		<title>Fylip22 : /* Redimensionnement d&#039;image JPEG en 1024 */</title>
		<link rel="alternate" type="text/html" href="https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3021&amp;oldid=prev"/>
		<updated>2021-12-06T23:20:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Redimensionnement d&amp;#039;image JPEG en 1024&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 7 décembre 2021 à 01:20&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot;&gt;Ligne 55 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 55 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $bmpResized = New-Object System.Drawing.Bitmap($newWidth, $newHeight)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $bmpResized = New-Object System.Drawing.Bitmap($newWidth, $newHeight)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        # forcer la résolution à 300 ppp&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;        # forcer la résolution à 300 ppp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $bmpResized &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= New-Object System&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Drawing.Bitmap&lt;/del&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$newWidth&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$newHeight&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $bmpResized.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SetResolution&lt;/ins&gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;300&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;300&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $graph = [System.Drawing.Graphics]::FromImage($bmpResized)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $graph = [System.Drawing.Graphics]::FromImage($bmpResized)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $graph.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $graph.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fylip22</name></author>
	</entry>
	<entry>
		<id>https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3020&amp;oldid=prev</id>
		<title>Fylip22 : /* Redimensionnement d&#039;image JPEG en 1024 */</title>
		<link rel="alternate" type="text/html" href="https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3020&amp;oldid=prev"/>
		<updated>2021-12-06T23:19:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Redimensionnement d&amp;#039;image JPEG en 1024&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 7 décembre 2021 à 01:19&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l53&quot;&gt;Ligne 53 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 53 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $newHeight = [int] ($img.Height * $ratio)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $newHeight = [int] ($img.Height * $ratio)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    $bmpResized = New-Object System.Drawing.Bitmap($newWidth, $newHeight)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;       # forcer la résolution à 300 ppp&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $bmpResized = New-Object System.Drawing.Bitmap($newWidth, $newHeight)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $bmpResized = New-Object System.Drawing.Bitmap($newWidth, $newHeight)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $graph = [System.Drawing.Graphics]::FromImage($bmpResized)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     $graph = [System.Drawing.Graphics]::FromImage($bmpResized)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fylip22</name></author>
	</entry>
	<entry>
		<id>https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3017&amp;oldid=prev</id>
		<title>Fylip22 : Page créée avec « Quelques scripts de traitement d&#039;image en PowerShell.  == Redimensionnement d&#039;image JPEG en 1024 == Script à améliorer : * ne pas redimensionner les images déjà en 102… »</title>
		<link rel="alternate" type="text/html" href="https://kono.phpage.fr/index.php?title=Traitement_d%27image_(PowerShell)&amp;diff=3017&amp;oldid=prev"/>
		<updated>2021-12-06T23:02:36Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « Quelques scripts de traitement d&amp;#039;image en PowerShell.  == Redimensionnement d&amp;#039;image JPEG en 1024 == Script à améliorer : * ne pas redimensionner les images déjà en 102… »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Quelques scripts de traitement d&amp;#039;image en PowerShell.&lt;br /&gt;
&lt;br /&gt;
== Redimensionnement d&amp;#039;image JPEG en 1024 ==&lt;br /&gt;
Script à améliorer :&lt;br /&gt;
* ne pas redimensionner les images déjà en 1024 ou taille inférieur ;&lt;br /&gt;
* en fonction d&amp;#039;une fourchette de date (notion d&amp;#039;obsolescence) ;&lt;br /&gt;
* ignorer certains dossiers ;&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
lewisroberts.com&lt;br /&gt;
* http://www.lewisroberts.com/2015/01/18/powershell-image-resize-function/&lt;br /&gt;
&lt;br /&gt;
Christopher, someshinyobject&lt;br /&gt;
* https://gist.github.com/someshinyobject&lt;br /&gt;
* https://gist.github.com/someshinyobject/617bf00556bc43af87cd&lt;br /&gt;
&lt;br /&gt;
Microsoft :&lt;br /&gt;
* https://docs.microsoft.com/en-us/windows/powertoys/image-resizer&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
Function ResizeImage() {&lt;br /&gt;
    param(&lt;br /&gt;
        [String]$ImagePath, &lt;br /&gt;
        [Int]$Quality = 90, &lt;br /&gt;
        [Int]$targetSize,&lt;br /&gt;
        [String]$OutputLocation)&lt;br /&gt;
 &lt;br /&gt;
    Add-Type -AssemblyName &amp;quot;System.Drawing&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
    $img = [System.Drawing.Image]::FromFile($ImagePath)&lt;br /&gt;
 &lt;br /&gt;
    $CanvasWidth = $targetSize&lt;br /&gt;
    $CanvasHeight = $targetSize&lt;br /&gt;
 &lt;br /&gt;
    #Encoder parameter for image quality&lt;br /&gt;
    $ImageEncoder = [System.Drawing.Imaging.Encoder]::Quality&lt;br /&gt;
    $encoderParams = New-Object System.Drawing.Imaging.EncoderParameters(1)&lt;br /&gt;
    $encoderParams.Param[0] = New-Object System.Drawing.Imaging.EncoderParameter($ImageEncoder, $Quality)&lt;br /&gt;
 &lt;br /&gt;
    # get codec&lt;br /&gt;
    $Codec = [System.Drawing.Imaging.ImageCodecInfo]::GetImageEncoders() | Where {$_.MimeType -eq &amp;#039;image/jpeg&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    #compute the final ratio to use&lt;br /&gt;
    $ratioX = $CanvasWidth / $img.Width;&lt;br /&gt;
    $ratioY = $CanvasHeight / $img.Height;&lt;br /&gt;
 &lt;br /&gt;
    $ratio = $ratioY&lt;br /&gt;
    if ($ratioX -le $ratioY) {&lt;br /&gt;
        $ratio = $ratioX&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    $newWidth = [int] ($img.Width * $ratio)&lt;br /&gt;
    $newHeight = [int] ($img.Height * $ratio)&lt;br /&gt;
 &lt;br /&gt;
    $bmpResized = New-Object System.Drawing.Bitmap($newWidth, $newHeight)&lt;br /&gt;
    $graph = [System.Drawing.Graphics]::FromImage($bmpResized)&lt;br /&gt;
    $graph.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic&lt;br /&gt;
 &lt;br /&gt;
    $graph.Clear([System.Drawing.Color]::White)&lt;br /&gt;
    $graph.DrawImage($img, 0, 0, $newWidth, $newHeight)&lt;br /&gt;
 &lt;br /&gt;
    #save to file&lt;br /&gt;
    $bmpResized.Save($OutputLocation, $Codec, $($encoderParams))&lt;br /&gt;
    $bmpResized.Dispose()&lt;br /&gt;
    $img.Dispose()&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Clear-Host&lt;br /&gt;
&lt;br /&gt;
$MonFichier = &amp;quot;&amp;quot;&lt;br /&gt;
$FichiersListe = &amp;quot;&amp;quot;&lt;br /&gt;
$Chemin = &amp;quot;C:\tmp\&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Set-Location $Chemin&lt;br /&gt;
&lt;br /&gt;
$FichiersListe = Get-ChildItem -path $chemin -file *.jpg&lt;br /&gt;
&lt;br /&gt;
ForEach($MonFichier in $FichiersListe) {&lt;br /&gt;
    $FichierDateCreation = $MonFichier.CreationTime&lt;br /&gt;
    $FichierDateModif = $MonFichier.LastWriteTime&lt;br /&gt;
    $FichierDateAcces = $MonFichier.LastAccessTime&lt;br /&gt;
&lt;br /&gt;
    $NouveauNom = $MonFichier.basename+&amp;quot;-mieux-1024&amp;quot;+&amp;quot;.jpg&amp;quot;&lt;br /&gt;
    $NouveauFichier = New-Item -Name $NouveauNom -ItemType &amp;quot;file&amp;quot;&lt;br /&gt;
   &lt;br /&gt;
    ResizeImage $MonFichier.FullName 85 1024 ($Chemin+&amp;quot;\&amp;quot;+$NouveauFichier.name)&lt;br /&gt;
    Set-Location $Chemin&lt;br /&gt;
    $NouveauFichier.CreationTime = $FichierDateModif&lt;br /&gt;
    $NouveauFichier.LastWriteTime = $FichierDateModif&lt;br /&gt;
    $NouveauFichier.LastAccessTime = $FichierDateModif&lt;br /&gt;
    remove-item $Monfichier&lt;br /&gt;
    rename-item $NouveauFichier $MonFichier&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Voir aussi ==&lt;br /&gt;
* [[PowerShell]]&lt;br /&gt;
&lt;br /&gt;
[[Catégorie:Script PowerShell]]&lt;/div&gt;</summary>
		<author><name>Fylip22</name></author>
	</entry>
</feed>