himg 0.0.7-x86_64-linux → 0.0.8-x86_64-linux
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +68 -1
- data/lib/himg/3.2/himg.so +0 -0
- data/lib/himg/3.3/himg.so +0 -0
- data/lib/himg/3.4/himg.so +0 -0
- data/lib/himg/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcdc42fd4a8b312450b22ca52ffb2eb1e8b53198e50dcd8171b42164bbc4db0f
|
4
|
+
data.tar.gz: 32876e5c9f544686a461099dd2644020cf5f7d9f260633f88a5786a23256e256
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d193e47c0a8af4de8d65f5e9c1866b504ce89e0c642c06c98fae80baf21e544e45846f0b01f20874eaba9196d08be2864db49921bef4df249b260e44f6b007
|
7
|
+
data.tar.gz: e9c1122330a94df1a8c71d4f11480920e7c5d9d7b0ef241529df6b4d20539213b8ca1728750f20f73558c38ffb348256200f35770c186407848a81066b73cbb8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
|
4
|
+
## [0.0.8] - 2025-07-31
|
5
|
+
|
6
|
+
- Return to GPU rendering by default: quality is low with CPU rendering.
|
7
|
+
- Compile native Apple darwin/macos gems for intel and arm.
|
8
|
+
- Remove debug symbols saving 315MB on the binary size.
|
9
|
+
|
3
10
|
## [0.0.7] - 2025-07-29
|
4
11
|
|
5
12
|
- Added `fetch_timeout` option to control restrict how long can be spent fetching resources.
|
@@ -7,6 +14,8 @@
|
|
7
14
|
|
8
15
|
## [0.0.6] - 2025-07-23
|
9
16
|
|
17
|
+
- Updates to latest blitz
|
18
|
+
- Renders on CPU instead of GPU (experimental)
|
10
19
|
- Added bin/himg CLI screenshot tool
|
11
20
|
- Added `base_url` option for configuring relative paths
|
12
21
|
- Added `disable_fetch` option for security hardening
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
You give it HTML and it gives back an image!
|
4
4
|
|
5
|
-
Parses
|
5
|
+
Parses HTML/CSS, fetches nested resources, renders an image. No browser, no fuss.
|
6
6
|
|
7
7
|
Perfect for OpenGraph images - stop losing clicks to boring links by adding a rich image preview that showcases your content.
|
8
8
|
|
@@ -13,6 +13,7 @@ Perfect for OpenGraph images - stop losing clicks to boring links by adding a ri
|
|
13
13
|
### Command Line
|
14
14
|
|
15
15
|
```bash
|
16
|
+
gem install himg
|
16
17
|
himg screenshot path/to/your.html screenshot.png
|
17
18
|
himg screenshot https://github.com/Jamedjo/himg himg.png --width=1024 --verbose --no-truncate
|
18
19
|
```
|
@@ -121,6 +122,72 @@ respond_to do |format|
|
|
121
122
|
end
|
122
123
|
```
|
123
124
|
|
125
|
+
# Supported HTML and CSS
|
126
|
+
|
127
|
+
Himg supports a large subset of the HTML and CSS you'd need to get by, but not all elements or properties are supported.
|
128
|
+
|
129
|
+
For a full list, see our [snapshot of the blitz.is status page](https://github.com/Jamedjo/himg/issues/2).
|
130
|
+
|
131
|
+
If something you'd like supported is missing and is available [upstream on blitz](https://blitz.is/status), please [open an issue](https://github.com/Jamedjo/himg/issues/new).
|
132
|
+
|
133
|
+
|HTML|Status|
|
134
|
+
|-|-|
|
135
|
+
|`Generic HTML5 elements`|✅ Supported|
|
136
|
+
|`<style>`|✅ Supported|
|
137
|
+
|`<link rel="stylesheet">`|✅ Supported|
|
138
|
+
|`<link rel="icon">`|❌ Not supported|
|
139
|
+
|`<img src="">`|✅ Supported|
|
140
|
+
|`<img srcset="">`|❌ Not supported|
|
141
|
+
|`<picture>`|❌ Not supported|
|
142
|
+
|`<svg>`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
143
|
+
|`<h1>-<h6>`|✅ Supported|
|
144
|
+
|`<ul>/<ol>`|✅ Supported|
|
145
|
+
|`<i>/<em>`|✅ Supported|
|
146
|
+
|`<b>/<strong>`|✅ Supported|
|
147
|
+
|`<u>`|✅ Supported|
|
148
|
+
|`<center>`|✅ Supported|
|
149
|
+
|`<pre>/<blockquote>`|✅ Supported|
|
150
|
+
|`<a>`|✅ Supported|
|
151
|
+
|`<br>`|✅ Supported|
|
152
|
+
|`<hr>`|❌ Not supported|
|
153
|
+
|`<details>/<summary>`|❌ Not supported|
|
154
|
+
|`<table>`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
155
|
+
|`Form Controls`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
156
|
+
|
157
|
+
|CSS|Status|
|
158
|
+
|-|-|
|
159
|
+
|`display:inline, display:block, display:inline-block`|✅ Supported|
|
160
|
+
|`display:none`|✅ Supported|
|
161
|
+
|`display:flex`|✅ Supported|
|
162
|
+
|`display:grid`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
163
|
+
|`display:table`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
164
|
+
|`display:contents`|❌ Not supported|
|
165
|
+
|`position:relative, position:absolute`|✅ Supported|
|
166
|
+
|`position:static, position:fixed, position:sticky`|❌ Not supported|
|
167
|
+
|`overflow`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
168
|
+
|`z-index`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
169
|
+
|`box-sizing`|✅ Supported|
|
170
|
+
|`float`|❌ Not supported|
|
171
|
+
|`content (::before / ::after)`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
172
|
+
|`opacity, visibility`|✅ Supported|
|
173
|
+
|`width, height`|✅ Supported|
|
174
|
+
|`min-width, max-width, min-height, max-height`|✅ Supported|
|
175
|
+
|`padding, margin, gap`|✅ Supported|
|
176
|
+
|`border`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
177
|
+
|`@font-face, font-size, font-family`|✅ Supported|
|
178
|
+
|`font-weight, font-style, font-stretch`|✅ Supported|
|
179
|
+
|`font-display, font-variant, font-feature-settings`|❌ Not supported|
|
180
|
+
|`color, text-align, line-height, text-decoration`|✅ Supported|
|
181
|
+
|`letter-spacing, overlap-wrap, word-wrap, word-break`|✅ Supported|
|
182
|
+
|`vertical-align, text-transform, text-overflow`|❌ Not supported|
|
183
|
+
|`border`|⚠️ [Partial support](https://github.com/Jamedjo/himg/issues/2)|
|
184
|
+
|`background-color, background-image`|✅ Supported|
|
185
|
+
|`background-size, background-position`|✅ Supported|
|
186
|
+
|`background-repeat, background-clip, background-origin`|✅ Supported|
|
187
|
+
|`background-attachment`|❌ Not supported|
|
188
|
+
|`box-shadow`|✅ Supported|
|
189
|
+
|`filter`|❌ Not supported|
|
190
|
+
|
124
191
|
# How it works
|
125
192
|
|
126
193
|
No browser, just basics!
|
data/lib/himg/3.2/himg.so
CHANGED
Binary file
|
Binary file
|
data/lib/himg/3.4/himg.so
CHANGED
Binary file
|
data/lib/himg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: himg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- James Edwards-Jones
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- gemfiles/rails_8.gemfile.lock
|
174
174
|
- lib/himg.rb
|
175
175
|
- lib/himg/3.2/himg.so
|
176
|
+
- lib/himg/3.3/himg.so
|
176
177
|
- lib/himg/3.4/himg.so
|
177
178
|
- lib/himg/base_url.rb
|
178
179
|
- lib/himg/cli.rb
|