Skip to content

Commit cbba67f

Browse files
author
raffe1234
committed
Bump to v1.0.4 (installed 7-Zip only + docs)
1 parent c7a17ce commit cbba67f

4 files changed

Lines changed: 52 additions & 46 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v1.0.4 – 2026-02-13
4+
- Windows CMD script now requires **installed 7-Zip (7z.exe)** for extraction.
5+
- Removed/disabled the portable `7zr.exe` path because it can fail to open `.procreate` ZIP archives reliably on some systems.
6+
- README updated to reflect the “installed 7-Zip only” requirement for the CMD script.
7+
38
## v1.0.3 – 2026-02-13
49
- Windows CMD script now uses 7-Zip (7z/7zr) instead of PowerShell for thumbnail extraction.
510
- CMD script prints simple progress updates during processing.
@@ -15,3 +20,4 @@
1520
- Initial release with Linux, PowerShell, and CMD scripts
1621
- Extracts QuickLook/Thumbnail.png from Procreate files
1722
- Adds progress display and logs failures
23+

README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,22 @@ Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
6868
.\scripts\extract-procreate-thumbnails.ps1
6969
```
7070

71-
### Windows CMD (7-Zip based)
71+
### Windows CMD (installed 7-Zip required)
7272

73-
The CMD script extracts thumbnails using **7-Zip** (recommended for better robustness than embedding long PowerShell one-liners in CMD).
73+
The CMD script extracts thumbnails using the **installed 7-Zip CLI (`7z.exe`)**.
7474

75-
#### Requirements (choose one)
75+
Why installed 7-Zip only?
76+
- The small standalone `7zr.exe` can be blocked by security tools and/or fail to open `.procreate` ZIP archives reliably on some systems.
77+
- `7z.exe` (installed version) works consistently for this extraction method.
7678

77-
**Option A: Portable (no install)**
78-
1. Download the **7-Zip console executable** (`7zr.exe`) from the 7-Zip download page https://www.7-zip.org/download.html
79-
2. Put `7zr.exe` in the **same folder** as:
80-
- your `.procreate` files
81-
- the `.cmd` script you run
79+
#### Requirements
8280

83-
**Option B: Install 7-Zip**
84-
1. Install 7-Zip using the Windows installer from https://www.7-zip.org/download.html
85-
2. The script will try these common locations automatically:
86-
- `%ProgramFiles%\7-Zip\7z.exe`
87-
- `%ProgramFiles(x86)%\7-Zip\7z.exe`
88-
3. (Optional) Add 7-Zip to your `PATH`.
81+
1. Install 7-Zip using the Windows installer from the 7-Zip download page.
82+
2. The script will find `7z.exe` in one of these ways:
83+
- via `PATH` (if you’ve added it), or
84+
- in common install paths:
85+
- `%ProgramFiles%\7-Zip\7z.exe`
86+
- `%ProgramFiles(x86)%\7-Zip\7z.exe`
8987

9088
#### Run
9189

@@ -107,7 +105,7 @@ The script prints simple progress updates (about every 10% of files processed).
107105

108106
For each `file.procreate`, the script writes `file.png` in the same folder.
109107

110-
If a file is missing a thumbnail, the scripts skip it and (for CMD) log it to `problems.log`.
108+
If a file is missing a thumbnail, the scripts skip it and (for CMD) log failures to `problems.log`.
111109

112110
## Known limitations
113111

@@ -128,8 +126,8 @@ This repository includes a `.gitattributes` file to normalize line endings acros
128126
- The script has Windows line endings. Ensure the `.sh` file uses LF (this repo enforces it via `.gitattributes`).
129127
- **Linux/macOS: `unzip: command not found`**
130128
- Install `unzip` using your package manager (e.g. `apt`, `dnf`, `brew`).
131-
- **CMD: “Could not find 7zr.exe or 7z.exe”**
132-
- Put `7zr.exe` next to the script (portable option), or install 7-Zip.
129+
- **CMD: “Could not find 7z.exe”**
130+
- Install 7-Zip and try again. If installed, confirm it’s in one of the common paths above or add it to `PATH`.
133131
- **Nothing happens / no PNG output**
134132
- Confirm you are running the script in the folder that contains the `.procreate` files.
135133

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.3
1+
v1.0.4

scripts/extract-procreate-thumbnails.cmd

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,55 @@
22
setlocal EnableExtensions EnableDelayedExpansion
33

44
REM ============================================================
5-
REM extract-procreate-thumbnails-7zip.cmd
5+
REM extract-procreate-thumbnails.cmd
66
REM
7-
REM Extracts QuickLook\Thumbnail.png from each .procreate file and
8-
REM saves it as a .png with the same base filename.
7+
REM Extract QuickLook\Thumbnail.png from each .procreate file and save it
8+
REM as a .png with the same base filename.
99
REM
1010
REM A .procreate file is a ZIP archive. The embedded preview is at:
1111
REM QuickLook\Thumbnail.png
1212
REM
13-
REM REQUIREMENTS (choose one):
13+
REM REQUIREMENTS (Windows 10/11):
14+
REM - Install 7-Zip (recommended): https://www.7-zip.org/download.html
15+
REM (Install the "7-Zip for Windows" package.)
1416
REM
15-
REM Option A (portable, no install):
16-
REM 1) Download 7zr.exe from 7-zip.org (console executable)
17-
REM Put 7zr.exe in the SAME folder as:
18-
REM - your .procreate files
19-
REM - this .cmd script
20-
REM
21-
REM Option B (install 7-Zip):
22-
REM 1) Install 7-Zip (Windows installer)
23-
REM 2) This script will try common locations:
24-
REM %ProgramFiles%\7-Zip\7z.exe
25-
REM %ProgramFiles(x86)%\7-Zip\7z.exe
26-
REM (or you can add 7-Zip to PATH)
17+
REM IMPORTANT:
18+
REM - This script uses the installed 7-Zip CLI: 7z.exe
19+
REM - The small "7zr.exe" (standalone) is NOT supported here because it
20+
REM cannot open ZIP archives reliably for this use-case (it is mainly
21+
REM for 7z archives), so .procreate extraction will fail.
2722
REM
2823
REM USAGE:
29-
REM Place this script in the folder containing your .procreate files
30-
REM then run:
31-
REM extract-procreate-thumbnails-7zip.cmd
24+
REM 1) Copy this .cmd file into the folder that contains your .procreate files
25+
REM 2) Run it from Command Prompt (CMD):
26+
REM extract-procreate-thumbnails.cmd
3227
REM
3328
REM OUTPUT:
3429
REM file.procreate -> file.png
3530
REM failures are logged to problems.log
31+
REM
32+
REM NOTES / LIMITATIONS:
33+
REM - CMD can be fragile with special characters in filenames (e.g. &, ^, !).
34+
REM If you have such filenames, prefer the PowerShell script.
3635
REM ============================================================
3736

38-
REM ---- Find 7-Zip console executable ----
37+
REM ---- Find installed 7z.exe ----
3938
set "SEVENZIP="
4039

41-
REM Prefer portable exe in the same folder as this script:
42-
if exist "%~dp07zr.exe" set "SEVENZIP=%~dp07zr.exe"
43-
if not defined SEVENZIP if exist "%~dp07z.exe" set "SEVENZIP=%~dp07z.exe"
40+
REM Try PATH first
41+
for /f "delims=" %%P in ('where 7z.exe 2^>nul') do (
42+
set "SEVENZIP=%%P"
43+
goto :found7z
44+
)
4445

45-
REM Common install paths:
46-
if not defined SEVENZIP if exist "%ProgramFiles%\7-Zip\7z.exe" set "SEVENZIP=%ProgramFiles%\7-Zip\7z.exe"
46+
REM Try common install paths
47+
if exist "%ProgramFiles%\7-Zip\7z.exe" set "SEVENZIP=%ProgramFiles%\7-Zip\7z.exe"
4748
if not defined SEVENZIP if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" set "SEVENZIP=%ProgramFiles(x86)%\7-Zip\7z.exe"
4849

50+
:found7z
4951
if not defined SEVENZIP (
50-
echo ERROR: Could not find 7zr.exe or 7z.exe.
51-
echo Put 7zr.exe next to this script, or install 7-Zip.
52+
echo ERROR: Could not find 7z.exe.
53+
echo Install 7-Zip from https://www.7-zip.org/ and try again.
5254
exit /b 1
5355
)
5456

@@ -59,7 +61,7 @@ REM ---- Count .procreate files ----
5961
set "total=0"
6062
for %%F in (*.procreate) do set /a total+=1
6163

62-
if %total%==0 (
64+
if %total% EQU 0 (
6365
echo No .procreate files found.
6466
exit /b 0
6567
)

0 commit comments

Comments
 (0)