You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing to make an enhancement to the Resize-TheBrainNotesYouTubeThumbnail.ps1 script located in the "theBrain" folder. This enhancement involves adding a new parameter to allow setting the percentage of the image width and adjusting the number with the string $width={$CurrentWidth}p when $ImageType is resized.
if ($ImageType-eq'default') {
$NewString=$Pattern.Replace(')','#$width={0}p$)'-f$NewWidth)
} else {
$NewString=$Pattern.Replace('#$width=30p$)','#$width={0}p$)'-f$NewWidth)
}
This change will make the script more flexible by allowing users to specify the width of the image as a percentage. It also sets 'default' as the default value of the $ImageType parameter, which simplifies the usage of the script.
Please let me know if you have any questions or need further information.
The text was updated successfully, but these errors were encountered:
…nNotesYouTubeThumbnail.ps1
This commit introduces a new parameter to the `Resize-TheBrainNotesYouTubeThumbnail.ps1` script that allows users to set the width of the image as a percentage. This enhancement provides more flexibility to users by allowing them to specify the desired width of the image.
The changes include:
- Added a new parameter `$NewWidth` to set the width of the image as a percentage.
- Adjusted the string `$width={$CurrentWidth}p` to reflect the new width when `$ImageType` is resized.
- Set 'default' as the default value of the `$ImageType` parameter to simplify the usage of the script.
This change enhances the functionality of the script and makes it more user-friendly by providing more customization options.
Fixes#17
I am writing to make an enhancement to the
Resize-TheBrainNotesYouTubeThumbnail.ps1
script located in the "theBrain" folder. This enhancement involves adding a new parameter to allow setting the percentage of the image width and adjusting the number with the string$width={$CurrentWidth}p
when$ImageType
is resized.Here is the proposed change:
This change will make the script more flexible by allowing users to specify the width of the image as a percentage. It also sets 'default' as the default value of the
$ImageType
parameter, which simplifies the usage of the script.Please let me know if you have any questions or need further information.
The text was updated successfully, but these errors were encountered: