vision-coordinates changedbuild-with-claude/vision-coordinates
Nearest release: v2.1.309, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+9added
Lines−9removed
From line
57
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits10to this page, all time
The whole hunk
from line 57, old and new numbered
/
from line 57
5757
5858
5959 def count_image_tokens(width: int, height: int) -> int:
60 """Visual tokens consumed by an image: one token per 28x28 pixel patch."""
60 """Visual tokens consumed by an image: one token for each 28x28 pixel patch."""
6161 return math.ceil(width / 28) * math.ceil(height / 28)
6262
6363
from line 108
108108 ```
109109
110110 ```typescript TypeScript
111 /** Visual tokens consumed by an image: one token per 28x28 pixel patch. */
111 /** Visual tokens consumed by an image: one token for each 28x28 pixel patch. */
112112 function countImageTokens(width: number, height: number): number {
113113 return Math.ceil(width / 28) * Math.ceil(height / 28);
114114 }
from line 176
176176 ```
177177
178178 ```csharp C#
179 // Visual tokens consumed by an image: one token per 28x28 pixel patch.
179 // Visual tokens consumed by an image: one token for each 28x28 pixel patch.
180180 static int CountImageTokens(int width, int height)
181181 {
182182 return (width + 27) / 28 * ((height + 27) / 28); // ceil(w/28) * ceil(h/28)
from line 233
233233 ```
234234
235235 ```go Go
236 // countImageTokens is the visual tokens consumed by an image: one token per
236 // countImageTokens is the visual tokens consumed by an image: one token for each
237237 // 28x28 pixel patch.
238238 func countImageTokens(width, height int) int {
239239 return ((width + 27) / 28) * ((height + 27) / 28) // ceil(w/28) * ceil(h/28)
from line 282
282282 /** A resized image size, as returned by resizedSize. */
283283 record Size(int width, int height) {}
284284
285 /** Visual tokens consumed by an image: one token per 28x28 pixel patch. */
285 /** Visual tokens consumed by an image: one token for each 28x28 pixel patch. */
286286 static int countImageTokens(int width, int height) {
287287 return Math.ceilDiv(width, 28) * Math.ceilDiv(height, 28);
288288 }
from line 325
325325
326326 private static boolean fits(int width, int height, int maxEdge, int maxTokens) {
327327 return Math.ceilDiv(width, 28) * 28 <= maxEdge
328 && Math.ceilDiv(height, 28) * 28 <= maxEdge
329 && countImageTokens(width, height) <= maxTokens;
328 && Math.ceilDiv(height, 28) * 28 <= maxEdge
329 && countImageTokens(width, height) <= maxTokens;
330330 }
331331
332332 private static int shortEdge(int longEdge, double aspectRatio) {
from line 335
335335 ```
336336
337337 ```php PHP
338 // Visual tokens consumed by an image: one token per 28x28 pixel patch.
338 // Visual tokens consumed by an image: one token for each 28x28 pixel patch.
339339 function countImageTokens(int $width, int $height): int
340340 {
341341 return intdiv($width + 27, 28) * intdiv($height + 27, 28);
from line 388
388388 ```
389389
390390 ```ruby Ruby
391 # Visual tokens consumed by an image: one token per 28x28 pixel patch.
391 # Visual tokens consumed by an image: one token for each 28x28 pixel patch.
392392 def count_image_tokens(width, height)
393393 width.ceildiv(28) * height.ceildiv(28)
394394 end
No line in this hunk matches that.