Skip to content

Commit 953f7dd

Browse files
authored
Merge pull request #22 from darktable-org/update_dt_lua_image_t
Update dt_lua_image_t in API manual
2 parents 3eb2d46 + a341131 commit 953f7dd

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

content/lua.api.manual/types/dt_lua_image_t.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,37 +372,43 @@ Attributes:
372372

373373
`number`
374374

375-
The width of the image.
375+
The sensor width of the image.
376376

377377
# dt_lua_image_t.height
378378

379379
`number`
380380

381-
The height of the image.
381+
The sensor height of the image.
382382

383383
# dt_lua_image_t.final_width
384384

385385
`number`
386386

387-
The final width of the image
387+
The final width of the image with the correct orientation
388388

389389
# dt_lua_image_t.final_height
390390

391391
`number`
392392

393-
The final height of the image
393+
The final height of the image with the correct orientation
394394

395395
# dt_lua_image_t.p_width
396396

397397
`number`
398398

399-
The raw width of the image
399+
The pixelpipe (usable) width of the image
400400

401401
# dt_lua_image_t.p_height
402402

403403
`number`
404404

405-
The raw height of the image
405+
The pixelpipe (usable) height of the image
406+
407+
# dt_lua_image_t.aspect_ratio
408+
409+
`number`
410+
411+
The aspect ratio of the image. Less than 1 is portrait orientation, 1 is square, and greater than 1 is landscape.
406412

407413
# dt_lua_image_t.rating
408414

0 commit comments

Comments
 (0)