summaryrefslogtreecommitdiff
path: root/test/viewImageTest/ViewImageTest.html
blob: 0e947b2a79c590bf2cb7bca91d8ade6490fd2d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
/* container style for ViewImage render */
.thumbcontainer {
	margin: 2px;
	width: 128px;
	height: 128px;
	float: left;
}
/* container style for direct browser render */
.browserthumb {
	margin: 2px;
	width: 128px;
	height: 128px;
	overflow: hidden;
}

td {
	max-width: 210px;
}
</style>
<title>ViewImage rendering tests</title>
</head>
<body>
	<h2>
		Test page to check ViewImage rendering with different image formats
		listed in <a
			href="http://www.iana.org/assignments/media-types/media-types.xhtml#image"
			title="IANA Media Types">IANA Media Types page</a>.
	</h2>
	<p>
		Prerequisites :
		<ul>
			<li>copy /yacy/test/viewImageTest/test folder in
				/yacy/htroot/env/grafics</li>
			<li>run a YaCy instance on localhost and 8090 port</li>
		</ul>
	</p>
	<table>
		<thead>
			<tr>
				<th>Image format</th>
				<th>Mime type</th>
				<th>File name extensions</th>
				<th>Long name/Description</th>
				<th>YaCy ViewImage</th>
				<th>Direct browser</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>PNG : <a
					href="https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"
					title="sample source url">sample source</a></td>
				<td>image/png</td>
				<td>.png</td>
				<td>Portable Network Graphics</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.png?url=http://localhost:8090/env/grafics/test/PNG_transparency_demonstration_1.png"
							title="ViewImage render PNG sample in full size"> <img
							src="http://localhost:8090/ViewImage.png?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/PNG_transparency_demonstration_1.png"
							width="128" height="128" alt="ViewImage PNG render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a
							href="http://localhost:8090/env/grafics/test/PNG_transparency_demonstration_1.png"
							title="Browser render PNG sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/PNG_transparency_demonstration_1.png"
							height="100%" style="margin-left: -17%"
							alt="Browser PNG render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>JPEG : <a
					href="https://upload.wikimedia.org/wikipedia/commons/b/b4/JPEG_example_JPG_RIP_100.jpg"
					title="sample source url">sample source</a></td>
				<td>image/jpeg</td>
				<td>.jpg, .jpeg, .jpe, .jif, .jfif, .jfi</td>
				<td>Joint Photographic Experts Group</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.png?url=http://localhost:8090/env/grafics/test/JPEG_example_JPG_RIP_100.jpg"
							title="Render JPEG sample in full size"> <img
							src="http://localhost:8090/ViewImage.png?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/JPEG_example_JPG_RIP_100.jpg"
							width="128" height="128" alt="JPG render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a
							href="http://localhost:8090/env/grafics/test/JPEG_example_JPG_RIP_100.jpg"
							title="Render JPEG sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/JPEG_example_JPG_RIP_100.jpg"
							height="100%" style="margin-left: -20%" alt="JPG render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>GIF : <a
					href="https://upload.wikimedia.org/wikipedia/commons/a/a0/Sunflower_as_gif_websafe.gif"
					title="sample source url">sample source</a></td>
				<td>image/gif</td>
				<td>.gif</td>
				<td>Graphics Interchange Format</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.gif?url=http://localhost:8090/env/grafics/test/Sunflower_as_gif_websafe.gif"
							title="Render GIF sample in full size"> <img
							src="http://localhost:8090/ViewImage.gif?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/Sunflower_as_gif_websafe.gif"
							width="128" height="128" alt="GIF render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a
							href="http://localhost:8090/env/grafics/test/Sunflower_as_gif_websafe.gif"
							title="Render GIF sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/Sunflower_as_gif_websafe.gif"
							width="100%" alt="GIF render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>Animated GIF : <a
					href="https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"
					title="sample source url">sample source</a></td>
				<td>image/gif</td>
				<td>.gif</td>
				<td>Graphics Interchange Format</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.gif?url=http://localhost:8090/env/grafics/test/Rotating_earth_%28large%29.gif"
							title="Render animated GIF sample in full size"> <img
							src="http://localhost:8090/ViewImage.gif?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/Rotating_earth_%28large%29.gif"
							width="128" height="128" alt="Animated GIF render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a
							href="http://localhost:8090/env/grafics/test/Rotating_earth_%28large%29.gif"
							title="Render animated GIF sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/Rotating_earth_%28large%29.gif"
							width="128" height="128" alt="Animated GIF render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>SVG : <a
					href="https://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg"
					title="sample source url">sample source</a></td>
				<td>image/svg+xml</td>
				<td>.svg, .svgz</td>
				<td>Scalable Vector Graphics</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.svg?url=http://localhost:8090/env/grafics/test/SVG_logo.svg"
							title="Render SVG sample in full size"> <img
							src="http://localhost:8090/ViewImage.svg?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/SVG_logo.svg"
							width="128" height="128" alt="SVG render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a href="http://localhost:8090/env/grafics/test/SVG_logo.svg"
							title="Render SVG sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/SVG_logo.svg"
							width="128" height="128" alt="SVG render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>ICO : <a
					href="https://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg"
					title="sample source url">sample source</a></td>
				<td>image/vnd.microsoft.icon, image/x-icon (not registered at
					IANA)</td>
				<td>.ico</td>
				<td>Graphics file format for computer icons</td>
				<td>
					<div class="thumbcontainer">No sample</div>
				</td>
				<td>
					<div class="browserthumb">No sample</div>
				</td>
			</tr>
			<tr>
				<td>CGM : <a
					href="http://www.agocg.ac.uk/train/cgm/ralcgm/sample.cgm"
					title="sample source url">sample source</a></td>
				<td>image/cgm</td>
				<td>.cgm</td>
				<td>Computer Graphics Metafile</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.png?url=http://localhost:8090/env/grafics/test/sample.cgm"
							title="Render CGM sample in full size"> <img
							src="http://localhost:8090/ViewImage.png?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/sample.cgm"
							width="128" height="128" alt="CGM render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a href="http://localhost:8090/env/grafics/test/sample.cgm"
							title="Render CGM sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/sample.cgm"
							width="128" height="128" alt="CGM render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>TIFF : <a
					href="http://www.uswebsitecreations.com/images/digital_images/marbles.tif"
					title="sample source url">sample source</a></td>
				<td>image/tiff, image/tiff-fx</td>
				<td>.tiff, .tif</td>
				<td>Tagged Image File Format</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.png?url=http://localhost:8090/env/grafics/test/marbles.tif"
							title="Render TIFF sample in full size"> <img
							src="http://localhost:8090/ViewImage.png?maxwidth=128&maxheight=128&quadratic&url=http://localhost:8090/env/grafics/test/marbles.tif"
							width="128" height="128" alt="TIFF render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a href="http://localhost:8090/env/grafics/test/marbles.tif"
							title="Render TIFF sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/marbles.tif"
							width="128" height="128" alt="TIFF render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>FITS : <a
					href="http://fits.gsfc.nasa.gov/samples/WFPC2u5780205r_c0fx.fits"
					title="sample source url">sample source</a></td>
				<td>image/fits, application/fits</td>
				<td>.fits, .fit, .fts</td>
				<td>Flexible Image Transport System</td>
				<td>
					<div class="thumbcontainer">
						<a
							href="http://localhost:8090/ViewImage.png?url=WFPC2u5780205r_c0fx.fits"
							title="Render FITS sample in full size"> <img
							src="http://localhost:8090/ViewImage.png?maxwidth=128&maxheight=128&quadratic&url=WFPC2u5780205r_c0fx.fits"
							width="128" height="128" alt="FITS render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a
							href="http://localhost:8090/env/grafics/test/WFPC2u5780205r_c0fx.fits"
							title="Render FITS sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/WFPC2u5780205r_c0fx.fits"
							width="128" height="128" alt="FITS render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>JPEG 2000 : <a
					href="http://www.fnordware.com/j2k/relax.jp2"
					title="sample source url">sample source</a></td>
				<td>image/jp2, image/jpx, image/jpm, video/mj2</td>
				<td>.jp2, .j2k, .jpf, .jpx, .jpm, .mj2</td>
				<td>JPEG 2000</td>
				<td>
					<div class="thumbcontainer">
						<a href="http://localhost:8090/ViewImage.png?url=relax.jp2"
							title="Render JPEG 2000 sample in full size"> <img
							src="http://localhost:8090/ViewImage.png?maxwidth=128&maxheight=128&quadratic&url=relax.jp2"
							width="128" height="128" alt="JPEG 2000 render failed" />
						</a>
					</div>
				</td>
				<td>
					<div class="browserthumb">
						<a href="http://localhost:8090/env/grafics/test/relax.jp2"
							title="Render JPEG 2000 sample in full size"> <img
							src="http://localhost:8090/env/grafics/test/relax.jp2"
							width="128" height="128" alt="JPEG 2000 render failed" />
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td>KTX</td>
				<td>image/ktx</td>
				<td>.ktx</td>
				<td>KTX (format for storing textures for OpenGL and OpenGL ES
					applications)</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>NAPLPDS</td>
				<td>image/naplps</td>
				<td>not known</td>
				<td>North American Presentation Layer Protocol Syntax</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>BTIF</td>
				<td>image/prs.btif</td>
				<td>.btif, .btf</td>
				<td>Bank check images and ASCII text data, used by Nations Bank</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>PTI</td>
				<td>image/prs.pti</td>
				<td>.pti</td>
				<td>PTI</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>PWG Raster</td>
				<td>image/pwg-raster</td>
				<td>none</td>
				<td>Used for printing "raw" image data in formats acceptable to
					printers</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>T38</td>
				<td>image/t38</td>
				<td>none</td>
				<td>Only used for T.38 media stream in SDP</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>PSD</td>
				<td>image/vnd.adobe.photoshop</td>
				<td>.psd</td>
				<td>Adobe Photoshop file</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
			<tr>
				<td>AZV</td>
				<td>image/vnd.airzip.accelerator.azv</td>
				<td>.azv</td>
				<td>AirZip file</td>
				<td>
					<div class="thumbcontainer">No Sample</div>
				</td>
				<td>
					<div class="browserthumb">No Sample</div>
				</td>
			</tr>
		</tbody>
	</table>
</body>
</html>