libreflow.extensions.sk.export-psd-layers 1.1.10__tar.gz → 1.1.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/CHANGELOG.md +8 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10/src/libreflow.extensions.sk.export_psd_layers.egg-info → libreflow_extensions_sk_export_psd_layers-1.1.11}/PKG-INFO +9 -1
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/extensions/sk/export_psd_layers/__init__.py +32 -8
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/extensions/sk/export_psd_layers/_version.py +3 -3
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/extensions/sk/export_psd_layers/scripts/PSD_crop_layers.jsx +9 -6
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11/src/libreflow.extensions.sk.export_psd_layers.egg-info}/PKG-INFO +9 -1
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/MANIFEST.in +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/README.md +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/setup.cfg +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/setup.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/extensions/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/extensions/sk/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow/extensions/sk/export_psd_layers/scripts/__init__.py +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow.extensions.sk.export_psd_layers.egg-info/SOURCES.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow.extensions.sk.export_psd_layers.egg-info/dependency_links.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow.extensions.sk.export_psd_layers.egg-info/requires.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/src/libreflow.extensions.sk.export_psd_layers.egg-info/top_level.txt +0 -0
- {libreflow_extensions_sk_export_psd_layers-1.1.10 → libreflow_extensions_sk_export_psd_layers-1.1.11}/versioneer.py +0 -0
|
@@ -19,6 +19,14 @@ Types of changes
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [1.1.11] - 2026-02-04
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
* Export Action:
|
|
27
|
+
* If the cropping script has not cropped the large layers, Photoshop can be restarted in a loop.
|
|
28
|
+
* Large layers are now rasterised before they can be cropped.
|
|
29
|
+
|
|
22
30
|
## [1.1.10] - 2025-10-30
|
|
23
31
|
|
|
24
32
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libreflow.extensions.sk.export_psd_layers
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.11
|
|
4
4
|
Home-page: https://gitlab.com/lfs.coop/libreflow/libreflow_launcher
|
|
5
5
|
Author: Thomas Thiebaut
|
|
6
6
|
Author-email: autor@les-fees-speciales.coop
|
|
@@ -50,6 +50,14 @@ Types of changes
|
|
|
50
50
|
|
|
51
51
|
## [Unreleased]
|
|
52
52
|
|
|
53
|
+
## [1.1.11] - 2026-02-04
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
* Export Action:
|
|
58
|
+
* If the cropping script has not cropped the large layers, Photoshop can be restarted in a loop.
|
|
59
|
+
* Large layers are now rasterised before they can be cropped.
|
|
60
|
+
|
|
53
61
|
## [1.1.10] - 2025-10-30
|
|
54
62
|
|
|
55
63
|
### Fixed
|
|
@@ -107,6 +107,7 @@ class ExportPSDLayers(flow.Action):
|
|
|
107
107
|
_sequence = flow.Parent(7)
|
|
108
108
|
|
|
109
109
|
revision = flow.Param(None, FileRevisionNameChoiceValue)
|
|
110
|
+
crop_process = flow.BoolParam(False).ui(hidden=True)
|
|
110
111
|
|
|
111
112
|
def allow_context(self, context):
|
|
112
113
|
"""Check whether the given context is valid for running the action.
|
|
@@ -366,18 +367,41 @@ class ExportPSDLayers(flow.Action):
|
|
|
366
367
|
layers_to_crop.append(descendant)
|
|
367
368
|
|
|
368
369
|
if len(layers_to_crop) != 0:
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
if self.crop_process.get() is True:
|
|
371
|
+
session.log_warning(
|
|
372
|
+
log_format.format(
|
|
373
|
+
message=f"These layers are still too large : {layers_to_crop}"
|
|
374
|
+
)
|
|
375
|
+
)
|
|
376
|
+
session.log_error(
|
|
377
|
+
log_format.format(
|
|
378
|
+
message="The script cannot crop large layers. Please crop them manually before using the export action."
|
|
375
379
|
)
|
|
376
380
|
)
|
|
377
|
-
|
|
378
|
-
|
|
381
|
+
|
|
382
|
+
self.crop_process.set(False)
|
|
379
383
|
return self.get_result(close=True)
|
|
380
384
|
|
|
385
|
+
self.crop_process.set(True)
|
|
386
|
+
|
|
387
|
+
cropping_action = self._file.cropping_psd_layers
|
|
388
|
+
cropping_action.file_path.set(source_revision.get_path())
|
|
389
|
+
self._file.cropping_psd_layers.run("Export")
|
|
390
|
+
|
|
391
|
+
session.log_warning(
|
|
392
|
+
log_format.format(
|
|
393
|
+
message=f"Open Photoshop to crop these layers : {layers_to_crop}"
|
|
394
|
+
)
|
|
395
|
+
)
|
|
396
|
+
session.log_info(
|
|
397
|
+
log_format.format(
|
|
398
|
+
message="Following export processes will be displayed on the processes view."
|
|
399
|
+
)
|
|
400
|
+
)
|
|
401
|
+
return self.get_result(close=True)
|
|
402
|
+
else:
|
|
403
|
+
self.crop_process = False
|
|
404
|
+
|
|
381
405
|
for layer in reversed(psb):
|
|
382
406
|
|
|
383
407
|
# Remove invalid characters
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "
|
|
11
|
+
"date": "2026-02-04T15:47:24+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "1.1.
|
|
14
|
+
"full-revisionid": "9078f54b5f81f4e2f70d2c5c819ab97cc1a96ade",
|
|
15
|
+
"version": "1.1.11"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var activeDoc = app.activeDocument;
|
|
1
|
+
var activeDoc = app.activeDocument;
|
|
2
2
|
|
|
3
3
|
doc_width = activeDoc.width;
|
|
4
4
|
doc_height = activeDoc.height;
|
|
@@ -10,15 +10,18 @@ main();
|
|
|
10
10
|
|
|
11
11
|
function main() {
|
|
12
12
|
CollectAllLayers(activeDoc)
|
|
13
|
-
for (var i = 0; i < layers_list.length; i++){
|
|
13
|
+
for (var i = 0; i < layers_list.length; i++) {
|
|
14
14
|
layer_width = layers_list[i].bounds[2] - layers_list[i].bounds[0];
|
|
15
15
|
layer_height = layers_list[i].bounds[3] - layers_list[i].bounds[1];
|
|
16
16
|
|
|
17
|
-
if (layer_width > doc_width * 1.5 || layer_height > doc_height * 1.5){
|
|
17
|
+
if (layer_width > doc_width * 1.5 || layer_height > doc_height * 1.5) {
|
|
18
18
|
layer_to_crop.push(layers_list[i]);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
if (layer_to_crop.length > 0) {
|
|
22
|
+
for (var i = 0; i < layer_to_crop.length; i++) {
|
|
23
|
+
layer_to_crop[i].rasterize(RasterizeType.ENTIRELAYER)
|
|
24
|
+
}
|
|
22
25
|
activeDoc.crop([0, 0, doc_width, doc_height])
|
|
23
26
|
}
|
|
24
27
|
activeDoc.save()
|
|
@@ -26,10 +29,10 @@ function main() {
|
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
// Collect all layers in a document
|
|
29
|
-
function CollectAllLayers(obj){
|
|
30
|
-
for (
|
|
32
|
+
function CollectAllLayers(obj) {
|
|
33
|
+
for (var i = obj.layers.length - 1; 0 <= i; i--) {
|
|
31
34
|
var layer = obj.layers[i];
|
|
32
|
-
if (layer.typename === "ArtLayer"){
|
|
35
|
+
if (layer.typename === "ArtLayer") {
|
|
33
36
|
layers_list.push(obj.layers[i]);
|
|
34
37
|
}
|
|
35
38
|
else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libreflow.extensions.sk.export_psd_layers
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.11
|
|
4
4
|
Home-page: https://gitlab.com/lfs.coop/libreflow/libreflow_launcher
|
|
5
5
|
Author: Thomas Thiebaut
|
|
6
6
|
Author-email: autor@les-fees-speciales.coop
|
|
@@ -50,6 +50,14 @@ Types of changes
|
|
|
50
50
|
|
|
51
51
|
## [Unreleased]
|
|
52
52
|
|
|
53
|
+
## [1.1.11] - 2026-02-04
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
* Export Action:
|
|
58
|
+
* If the cropping script has not cropped the large layers, Photoshop can be restarted in a loop.
|
|
59
|
+
* Large layers are now rasterised before they can be cropped.
|
|
60
|
+
|
|
53
61
|
## [1.1.10] - 2025-10-30
|
|
54
62
|
|
|
55
63
|
### Fixed
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|