Skip to content

Commit 7e4af34

Browse files
committed
save appears to write an image without layers, but it now opens!
1 parent 35f4a4d commit 7e4af34

File tree

4 files changed

+71
-65
lines changed

4 files changed

+71
-65
lines changed

documentation/reference/gimpformats/GimpIOBase.md

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
## GimpIOBase
4040

41-
[Show source in GimpIOBase.py:35](../../../gimpformats/GimpIOBase.py#L35)
41+
[Show source in GimpIOBase.py:37](../../../gimpformats/GimpIOBase.py#L37)
4242

4343
#### Signature
4444

@@ -49,7 +49,7 @@ class GimpIOBase:
4949

5050
### GimpIOBase().__repr__
5151

52-
[Show source in GimpIOBase.py:554](../../../gimpformats/GimpIOBase.py#L554)
52+
[Show source in GimpIOBase.py:555](../../../gimpformats/GimpIOBase.py#L555)
5353

5454
Get a textual representation of this object.
5555

@@ -61,7 +61,7 @@ def __repr__(self) -> str: ...
6161

6262
### GimpIOBase().__str__
6363

64-
[Show source in GimpIOBase.py:550](../../../gimpformats/GimpIOBase.py#L550)
64+
[Show source in GimpIOBase.py:551](../../../gimpformats/GimpIOBase.py#L551)
6565

6666
Get a textual representation of this object.
6767

@@ -73,7 +73,7 @@ def __str__(self) -> str: ...
7373

7474
### GimpIOBase()._colormapDecode
7575

76-
[Show source in GimpIOBase.py:195](../../../gimpformats/GimpIOBase.py#L195)
76+
[Show source in GimpIOBase.py:197](../../../gimpformats/GimpIOBase.py#L197)
7777

7878
_colormapDecode_.
7979

@@ -91,7 +91,7 @@ def _colormapDecode(self, data: bytearray | IO, index: int = 0) -> None: ...
9191

9292
### GimpIOBase()._guidelinesDecode
9393

94-
[Show source in GimpIOBase.py:143](../../../gimpformats/GimpIOBase.py#L143)
94+
[Show source in GimpIOBase.py:145](../../../gimpformats/GimpIOBase.py#L145)
9595

9696
Decode guidelines.
9797

@@ -103,7 +103,7 @@ def _guidelinesDecode(self, data: bytearray) -> None: ...
103103

104104
### GimpIOBase()._itemPathDecode
105105

106-
[Show source in GimpIOBase.py:153](../../../gimpformats/GimpIOBase.py#L153)
106+
[Show source in GimpIOBase.py:155](../../../gimpformats/GimpIOBase.py#L155)
107107

108108
Decode item path.
109109

@@ -115,7 +115,7 @@ def _itemPathDecode(self, data: bytearray) -> None: ...
115115

116116
### GimpIOBase()._parasitesDecode
117117

118-
[Show source in GimpIOBase.py:126](../../../gimpformats/GimpIOBase.py#L126)
118+
[Show source in GimpIOBase.py:128](../../../gimpformats/GimpIOBase.py#L128)
119119

120120
Decode list of parasites.
121121

@@ -127,7 +127,7 @@ def _parasitesDecode(self, data: bytearray) -> int: ...
127127

128128
### GimpIOBase()._parasitesEncode
129129

130-
[Show source in GimpIOBase.py:136](../../../gimpformats/GimpIOBase.py#L136)
130+
[Show source in GimpIOBase.py:138](../../../gimpformats/GimpIOBase.py#L138)
131131

132132
Encode list of parasites.
133133

@@ -139,7 +139,7 @@ def _parasitesEncode(self) -> bytearray: ...
139139

140140
### GimpIOBase()._propertiesDecode
141141

142-
[Show source in GimpIOBase.py:515](../../../gimpformats/GimpIOBase.py#L515)
142+
[Show source in GimpIOBase.py:517](../../../gimpformats/GimpIOBase.py#L517)
143143

144144
Decode a list of properties.
145145

@@ -155,7 +155,7 @@ def _propertiesDecode(self, ioBuf: IO) -> int: ...
155155

156156
### GimpIOBase()._propertiesEncode
157157

158-
[Show source in GimpIOBase.py:530](../../../gimpformats/GimpIOBase.py#L530)
158+
[Show source in GimpIOBase.py:531](../../../gimpformats/GimpIOBase.py#L531)
159159

160160
Encode a list of properties.
161161

@@ -166,12 +166,16 @@ bytes[] payload
166166
#### Signature
167167

168168
```python
169-
def _propertiesEncode(self) -> bytearray: ...
169+
def _propertiesEncode(self, enum: Enum = AllProps) -> bytearray: ...
170170
```
171171

172+
#### See also
173+
174+
- [AllProps](./enums.md#allprops)
175+
172176
### GimpIOBase()._propertyDecode
173177

174-
[Show source in GimpIOBase.py:240](../../../gimpformats/GimpIOBase.py#L240)
178+
[Show source in GimpIOBase.py:242](../../../gimpformats/GimpIOBase.py#L242)
175179

176180
Decode a single property.
177181

@@ -183,7 +187,7 @@ def _propertyDecode(self, prop: int, data: bytearray) -> int: ...
183187

184188
### GimpIOBase()._propertyEncode
185189

186-
[Show source in GimpIOBase.py:343](../../../gimpformats/GimpIOBase.py#L343)
190+
[Show source in GimpIOBase.py:345](../../../gimpformats/GimpIOBase.py#L345)
187191

188192
Encode a single property.
189193

@@ -195,7 +199,7 @@ def _propertyEncode(self, prop: int) -> bytearray: ...
195199

196200
### GimpIOBase()._samplePointsDecode
197201

198-
[Show source in GimpIOBase.py:228](../../../gimpformats/GimpIOBase.py#L228)
202+
[Show source in GimpIOBase.py:230](../../../gimpformats/GimpIOBase.py#L230)
199203

200204
Decode a series of points.
201205

@@ -207,7 +211,7 @@ def _samplePointsDecode(self, data: bytearray) -> None: ...
207211

208212
### GimpIOBase()._userUnitsDecode
209213

210-
[Show source in GimpIOBase.py:222](../../../gimpformats/GimpIOBase.py#L222)
214+
[Show source in GimpIOBase.py:224](../../../gimpformats/GimpIOBase.py#L224)
211215

212216
Decode a set of user-defined measurement units.
213217

@@ -219,7 +223,7 @@ def _userUnitsDecode(self, data: bytearray) -> None: ...
219223

220224
### GimpIOBase()._vectorsDecode
221225

222-
[Show source in GimpIOBase.py:163](../../../gimpformats/GimpIOBase.py#L163)
226+
[Show source in GimpIOBase.py:165](../../../gimpformats/GimpIOBase.py#L165)
223227

224228
Decode vectors.
225229

@@ -231,7 +235,7 @@ def _vectorsDecode(self, data: bytearray) -> None: ...
231235

232236
### GimpIOBase().activeVector
233237

234-
[Show source in GimpIOBase.py:177](../../../gimpformats/GimpIOBase.py#L177)
238+
[Show source in GimpIOBase.py:179](../../../gimpformats/GimpIOBase.py#L179)
235239

236240
Get the vector that is currently active.
237241

@@ -248,7 +252,7 @@ def activeVector(self) -> GimpVector: ...
248252

249253
### GimpIOBase().doc
250254

251-
[Show source in GimpIOBase.py:104](../../../gimpformats/GimpIOBase.py#L104)
255+
[Show source in GimpIOBase.py:106](../../../gimpformats/GimpIOBase.py#L106)
252256

253257
#### Signature
254258

@@ -259,7 +263,7 @@ def doc(self) -> GimpIOBase: ...
259263

260264
### GimpIOBase().expanded
261265

262-
[Show source in GimpIOBase.py:182](../../../gimpformats/GimpIOBase.py#L182)
266+
[Show source in GimpIOBase.py:184](../../../gimpformats/GimpIOBase.py#L184)
263267

264268
Is the group layer expanded.
265269

@@ -272,7 +276,7 @@ def expanded(self) -> bool: ...
272276

273277
### GimpIOBase().expanded
274278

275-
[Show source in GimpIOBase.py:187](../../../gimpformats/GimpIOBase.py#L187)
279+
[Show source in GimpIOBase.py:189](../../../gimpformats/GimpIOBase.py#L189)
276280

277281
Is the group layer expanded.
278282

@@ -285,7 +289,7 @@ def expanded(self, expanded: bool) -> None: ...
285289

286290
### GimpIOBase().full_repr
287291

288-
[Show source in GimpIOBase.py:565](../../../gimpformats/GimpIOBase.py#L565)
292+
[Show source in GimpIOBase.py:566](../../../gimpformats/GimpIOBase.py#L566)
289293

290294
Get a textual representation of this object.
291295

@@ -297,7 +301,7 @@ def full_repr(self, indent: int = 0) -> str: ...
297301

298302
### GimpIOBase().pointerSize
299303

300-
[Show source in GimpIOBase.py:78](../../../gimpformats/GimpIOBase.py#L78)
304+
[Show source in GimpIOBase.py:80](../../../gimpformats/GimpIOBase.py#L80)
301305

302306
Determine the size of the "pointer" datatype based on the document version.
303307

@@ -314,7 +318,7 @@ def pointerSize(self) -> int: ...
314318

315319
### GimpIOBase().root
316320

317-
[Show source in GimpIOBase.py:111](../../../gimpformats/GimpIOBase.py#L111)
321+
[Show source in GimpIOBase.py:113](../../../gimpformats/GimpIOBase.py#L113)
318322

319323
Get the root of the file object tree (Which is the same as self.doc).
320324

@@ -327,7 +331,7 @@ def root(self) -> GimpIOBase: ...
327331

328332
### GimpIOBase().tattoo
329333

330-
[Show source in GimpIOBase.py:116](../../../gimpformats/GimpIOBase.py#L116)
334+
[Show source in GimpIOBase.py:118](../../../gimpformats/GimpIOBase.py#L118)
331335

332336
Gimp nomenclature for the item's unique id.
333337

@@ -340,7 +344,7 @@ def tattoo(self) -> Any | None: ...
340344

341345
### GimpIOBase().tattoo
342346

343-
[Show source in GimpIOBase.py:121](../../../gimpformats/GimpIOBase.py#L121)
347+
[Show source in GimpIOBase.py:123](../../../gimpformats/GimpIOBase.py#L123)
344348

345349
Gimp nomenclature for the item's unique id.
346350

@@ -355,7 +359,7 @@ def tattoo(self, tattoo: Any | None) -> None: ...
355359

356360
## GimpUserUnits
357361

358-
[Show source in GimpIOBase.py:642](../../../gimpformats/GimpIOBase.py#L642)
362+
[Show source in GimpIOBase.py:643](../../../gimpformats/GimpIOBase.py#L643)
359363

360364
User-defined measurement units.
361365

@@ -368,7 +372,7 @@ class GimpUserUnits:
368372

369373
### GimpUserUnits().__str__
370374

371-
[Show source in GimpIOBase.py:689](../../../gimpformats/GimpIOBase.py#L689)
375+
[Show source in GimpIOBase.py:690](../../../gimpformats/GimpIOBase.py#L690)
372376

373377
Get a textual representation of this object.
374378

@@ -380,7 +384,7 @@ def __str__(self) -> str: ...
380384

381385
### GimpUserUnits().decode
382386

383-
[Show source in GimpIOBase.py:654](../../../gimpformats/GimpIOBase.py#L654)
387+
[Show source in GimpIOBase.py:655](../../../gimpformats/GimpIOBase.py#L655)
384388

385389
Decode a byte buffer.
386390

@@ -403,7 +407,7 @@ def decode(self, data: bytearray, index: int = 0) -> int: ...
403407

404408
### GimpUserUnits().encode
405409

406-
[Show source in GimpIOBase.py:677](../../../gimpformats/GimpIOBase.py#L677)
410+
[Show source in GimpIOBase.py:678](../../../gimpformats/GimpIOBase.py#L678)
407411

408412
Convert this object to raw bytearray.
409413

@@ -415,7 +419,7 @@ def encode(self) -> bytearray: ...
415419

416420
### GimpUserUnits().full_repr
417421

418-
[Show source in GimpIOBase.py:693](../../../gimpformats/GimpIOBase.py#L693)
422+
[Show source in GimpIOBase.py:694](../../../gimpformats/GimpIOBase.py#L694)
419423

420424
Get a textual representation of this object.
421425

@@ -429,7 +433,7 @@ def full_repr(self, indent: int = 0) -> str: ...
429433

430434
## camel_to_pascal_with_spaces
431435

432-
[Show source in GimpIOBase.py:30](../../../gimpformats/GimpIOBase.py#L30)
436+
[Show source in GimpIOBase.py:32](../../../gimpformats/GimpIOBase.py#L32)
433437

434438
#### Signature
435439

0 commit comments

Comments
 (0)