exrviewer 0.1.0.beta1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cd2fe26b6d87c8b11af9867c0ec9f365287acb64fa11b5a8a0b19041a134384d
4
+ data.tar.gz: 3cbbface4ae9115c89d00a329daeb76612f9cdf463ca3552ec3fc740e43c5624
5
+ SHA512:
6
+ metadata.gz: 85c56b34d5ec4021469e9a1ad8226b2d123cd5b878bc2a85d862362b815734ac299988f6f5f73731424f2967b532672027528a741223cc3998d0e5e501596830
7
+ data.tar.gz: 4ddae4ccb5c1f6476c96f965d9d7a24dd1c401d0d6b292c8fa62762e2f7e1caa8f20ddfbe93cde566904d654930e3b30912db1d4ff1d40cd7ac11588953d3363
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Benjamin Garcia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # exrviewer
2
+
3
+ > **Beta** -- This gem is under active development and not yet production-ready.
4
+ > APIs may change before the 0.1.0 stable release.
5
+
6
+ Rails engine for OpenEXR image viewing and preview generation:
7
+
8
+ - **ActiveStorage previewer** -- automatic EXR-to-JPEG preview generation via libvips.
9
+ - **ERB helpers** -- `exr_viewer_tag`, `exr_preview_tag`, and `exr_viewer_include_tag`.
10
+ - **Install generator** -- wires up a Stimulus controller using Three.js WebGPU.
11
+
12
+ ## Requirements
13
+
14
+ - Ruby >= 3.1
15
+ - Rails >= 7.0
16
+ - [libvips](https://www.libvips.org/)
17
+
18
+ ## Installation
19
+
20
+ ```ruby
21
+ gem "exrviewer"
22
+ ```
23
+
24
+ ```bash
25
+ bin/rails g exr_viewer:install
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```erb
31
+ <%= exr_viewer_tag(
32
+ src: @render.exr_attachment,
33
+ tone_mapping: "aces",
34
+ exposure: 1.0,
35
+ controls: true,
36
+ class: "viewer"
37
+ ) %>
38
+
39
+ <%= exr_preview_tag(
40
+ @render.exr_attachment,
41
+ preview: { resize_to_limit: [600, 600] },
42
+ class: "preview"
43
+ ) %>
44
+ ```
45
+
46
+ ## Development
47
+
48
+ ```bash
49
+ bundle install
50
+ bundle exec rspec
51
+ ```
52
+
53
+ ## License
54
+
55
+ MIT
@@ -0,0 +1 @@
1
+ //= link exr-viewer-stimulus.js