26 require_once dirname(__FILE__).
'/../../../../core/include/init.inc';
27 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
29 if (empty($GLOBALS[
'SQ_SYSTEM']->user) || !($GLOBALS[
'SQ_SYSTEM']->user->canAccessBackend() || $GLOBALS[
'SQ_SYSTEM']->user->type() ==
'simple_edit_user')){
33 $url_protocol_options = Array(
35 'http://' =>
'http://',
36 'https://' =>
'https://',
39 if (!isset($_GET[
'f_imageid'])) $_GET[
'f_imageid'] = 0;
42 <html style=
"width: 800px; height: 600px;">
44 <title>Insert
Image</title>
48 $include_list = Array(sq_web_path(
'lib').
'/js/translation.js');
50 $locales = $GLOBALS[
'SQ_SYSTEM']->lm->getCumulativeLocaleParts($GLOBALS[
'SQ_SYSTEM']->lm->getCurrentLocale());
52 foreach ($locales as $locale) {
53 if (file_exists(SQ_DATA_PATH.
'/public/system/core/js_strings.'.$locale.
'.js')) {
54 $include_list[] = sq_web_path(
'data').
'/system/core/js_strings.'.$locale.
'.js';
58 foreach ($include_list as $link) {
59 ?><script type=
"text/javascript" src=
"<?php echo $link; ?>"></script>
63 <script type=
"text/javascript" src=
"../../core/popup.js"></script>
64 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/asset_map/javaExternalCall.js' ?>"></script>
65 <script type=
"text/javascript" src=
"<?php echo sq_web_path('fudge').'/var_serialise/var_serialise.js' ?>"></script>
66 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/html_form/html_form.js' ?>"></script>
67 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/js/JsHttpConnector.js' ?>"></script>
68 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/js/general.js' ?>"></script>
69 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/js/tooltip.js' ?>"></script>
71 <script type=
"text/javascript">
74 setTimeout(
'self.focus()',100);
78 __dlg_init(
"matrixInsertImage");
79 if (document.getElementById(
"f_imageid[assetid]").value != 0) {
80 newImg(document.getElementById(
'image_container'),
'<?php echo sq_web_path('root_url
'); ?>' +
'/?a=' + document.getElementById(
"f_imageid[assetid]").value, document.getElementById(
'f_width').value, document.getElementById(
'f_height').value);
85 document.getElementById(
'main-form').action =
"";
86 document.getElementById(
'main-form').method =
"get";
87 if (navigator.appName ==
"Microsoft Internet Explorer") {
91 document.getElementById(
'main-form').enctype =
"";
93 document.getElementById(
'main-form').target =
"";
95 "f_alt":
"Please enter the alternate text"
97 for (var i in required) {
98 var el = document.getElementById(i);
106 var fields = [
"f_alt",
"f_title",
"f_align",
"f_border",
"f_image_class",
"f_image_id",
107 "f_horiz",
"f_vert",
"f_width",
"f_height"];
108 var param =
new Object();
109 for (var i in fields) {
111 var el = document.getElementById(
id);
112 param[id] = el.value;
117 param[
"f_imageid"] = document.main_form.elements[
"f_imageid[assetid]"].value;
120 if (document.main_form.elements[
"f_longdesc[assetid]"].value !=
"" && document.main_form.elements[
"f_longdesc[assetid]"].value !=
"0") {
121 param[
"f_longdesc"] = document.main_form.elements[
"f_longdesc[assetid]"].value;
123 param[
"f_longdesc"] = document.main_form.elements[
"f_longdesc_protocol"].value + document.main_form.elements[
"f_longdesc_link"].value;
126 __dlg_close(
"matrixInsertImage", param);
130 function onCancel() {
131 __dlg_close(
"matrixInsertImage", null);
135 function populateImageInfo(responseText) {
136 var imageInfo = var_unserialise(responseText);
140 if (imageInfo[
'alt'] ==
'') {
141 var path = imageInfo[
'name'];
144 while (ext.charAt(0) !=
"." && i > 0) ext = path.substring(i--);
145 imageInfo[
'alt'] = path.substring(0, ++i);
147 document.getElementById(
"f_alt").value = imageInfo[
'alt'];
148 document.getElementById(
"f_width").value = imageInfo[
'width'];
149 document.getElementById(
"f_height").value = imageInfo[
'height'];
150 newImg(document.getElementById(
'image_container'),
'<?php echo sq_web_path('root_url
'); ?>' +
'/?a=' + document.getElementById(
"f_imageid[assetid]").value, imageInfo[
'width'], imageInfo[
'height']);
153 function setImageInfo() {
155 var assetid = document.getElementById(
"f_imageid[assetid]").value;
157 var url =
'<?php echo sq_web_path('root_url
').'/
'.SQ_CONF_LIMBO_SUFFIX; ?>/?SQ_BACKEND_PAGE=main&backend_section=am&am_section=edit_asset&assetid=' + escape(assetid) +
'&asset_ei_screen=image_info&ignore_frames=1&t=' + Math.random() * 1000;
159 JsHttpConnector.submitRequest(url, populateImageInfo);
162 function doStatus(img) {
166 function newImg(div, url, width, height) {
170 width = parseFloat(width);
171 height = parseFloat(height);
172 var img = document.getElementById(
'preview_image');
177 img.onload =
function() { doStatus()};
179 if( width > limit || height > limit) {
180 if (width > height) {
181 scalar = limit / width;
183 scalar = limit / height;
187 img.width = parseInt(Math.ceil(width * scalar));
188 img.height = parseInt(Math.ceil(height * scalar));
190 div.appendChild(img);
195 function setImagePreview() {
196 if (document.getElementById(
"f_imageid[assetid]").value ==
"" || document.getElementById(
"f_imageid[assetid]").value == 0) {
199 newImg(document.getElementById(
'image_container'),
'<?php echo sq_web_path('root_url
'); ?>' +
'/?a=' + document.getElementById(
"f_imageid[assetid]").value);
202 function toggleCreateImage() {
203 changeButton = document.getElementById(
'show_create_button');
204 changeDivElements = [
"show_create_image_label1",
"show_create_image1",
"show_create_image_label2",
"show_create_image2",
"show_create_image_submit"];
206 errorDiv = document.getElementById(
'show_upload_error');
207 if (changeButton.style.display ==
"block") {
208 for (i in changeDivElements) {
209 var changeDiv = document.getElementById(changeDivElements[i]);
210 changeDiv.style.visibility =
"visible";
211 changeDiv.style.display =
"block";
213 changeButton.style.visibility =
"hidden";
214 changeButton.style.display =
"none";
216 for (i in changeDivElements) {
217 var changeDiv = document.getElementById(changeDivElements[i]);
218 changeDiv.style.visibility =
"hidden";
219 changeDiv.style.display =
"none";
221 errorDiv.style.visibility =
"hidden";
222 errorDiv.style.display =
"none";
223 changeButton.style.visibility =
"visible";
224 changeButton.style.display =
"block";
228 function submitCreateImage() {
229 document.getElementById(
'main-form').action =
"upload_image.php";
230 document.getElementById(
'main-form').method =
"post";
231 if (navigator.appName ==
"Microsoft Internet Explorer") {
233 var encType = document.getElementById(
'main-form').getAttributeNode(
"enctype");
234 encType.value =
"multipart/form-data";
236 document.getElementById(
'main-form').enctype =
"multipart/form-data";
238 document.getElementById(
'main-form').target =
"create_image_frame";
243 <style type=
"text/css">
247 font: 11px Tahoma,Verdana,sans-serif;
253 font: 11px Tahoma,Verdana,sans-serif;
262 font: 11px Tahoma,Verdana,sans-serif;
268 #quick-search #quick-search-for {
269 font: 11px Arial,Verdana,sans-serif;
270 border: 1px solid black;
274 #quick-search #quick-search-for-label {
275 font: 11px Arial,Verdana,sans-serif;
288 border-bottom: 1px solid black;
294 padding: 0px 10px 5px 5px;
295 border-color: #725B7D;
299 padding: 0px 10px 5px 5px;
300 border-color: #725B7D;
305 .fl { width: 9em;
float: left; padding: 2px 5px; text-align: right; }
306 .fr { width: 7em;
float: left; padding: 2px 5px; text-align: right; }
309 form { padding: 0px; margin: 0px; }
311 select, input, button {
312 font: 11px Tahoma,Verdana,sans-serif;
320 .buttonColor, .buttonColor-hilite {
323 border-color: #9E86AA #725B7D #725B7D #9E86AA;
326 .buttonColor-hilite {
327 border-color: #402F48;
330 .buttonColor-chooser, .buttonColor-nocolor, .buttonColor-nocolor-hilite {
334 border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
342 .buttonColor-nocolor, .buttonColor-nocolor-hilite { padding: 0px; }
343 .buttonColor-nocolor-hilite { background: #402F48; color: #FFFFFF; }
347 #new-message-popup, #search-wait-popup {
352 background-color: white;
353 border: 2px solid black;
354 font: normal 10px Arial,Verdana,sans-serif;
358 #new-message-popup-titlebar, #search-wait-popup-titlebar {
363 #new-message-popup-close, #search-wait-popup-close {
367 #new-message-popup-close a, #search-wait-popup-close a {
369 text-decoration: none;
372 #new-message-popup-details, #search-wait-popup-details {
381 div.search-result-blurb {
387 div.search-result-pager {
393 div.search-result-detail {
400 a.search-result-expand-link {
401 text-decoration: none;
408 text-decoration: none;
412 .search-result-expand-div {
416 background-color: white;
420 .search-result-entry {
426 .sq-backend-search-failed-table {
427 border: 2px solid #594165;
428 border-collapse: collapse;
429 background-color: #ECECEC;
432 .sq-backend-search-failed-heading, .sq-backend-search-failed-body {
434 background-color: #ececec;
435 font-family: Arial, Verdana, Helvetica, sans-serif;
439 text-decoration: none;
443 .sq-backend-search-failed-body {
448 .sq-backend-search-results-table {
449 border: 2px solid #594165;
450 border-collapse: collapse;
451 background-color: #ECECEC;
454 .sq-backend-search-results-heading, .sq-backend-search-results-body {
456 background-color: #FFFFFF;
457 font-family: Arial, Verdana, Helvetica, sans-serif;
461 text-decoration: none;
465 .sq-backend-search-results-heading {
466 background-color: #F0F0E6;
469 .sq-backend-search-results-highlight {
470 background-color: yellow;
473 .sq-backend-search-results-body {
480 <body onload=
"Init();" onUnload=
"asset_finder_onunload();">
482 <form action=
"" method=
"get" name=
"main_form" id=
"main-form">
485 if( $GLOBALS[
'SQ_SYSTEM']->user && !($GLOBALS[
'SQ_SYSTEM']->user instanceof
Public_User))
486 hidden_field(
'token', get_unique_token());
492 include_once(SQ_LIB_PATH.
'/asset_map/asset_map.inc');
494 $asset_map->embedAssetMap(
'simple', 200, 350);
498 <table cellspacing=
"0" cellpadding=
"0">
500 <td valign=
"top" width=
"100%" colspan=2>
502 <legend><b><?php echo translate(
'general'); ?></b></legend>
503 <table style=
"width:100%">
505 <td
class=
"label" nowrap=
"nowrap"><?php echo translate(
'image_url'); ?>:</td>
507 <?php asset_finder(
'f_imageid', (assert_valid_assetid($_GET[
'f_imageid'],
'', TRUE, FALSE) ? $_GET[
'f_imageid'] : 0), Array(
'image' =>
'D',
'image_variety' =>
'D'),
'',
false,
'setImageInfo'); ?>
511 <td
class=
"label" nowrap=
"nowrap"><?php echo translate(
'alternate_text'); ?>:</td>
513 <input type=
"text" name=
"alt" id=
"f_alt" style=
"width:100%" title=
"For browsers that don't support images" value=
"<?php echo htmlspecialchars($_REQUEST['f_alt']) ?>" />
517 <td
class=
"label" nowrap=
"nowrap"><?php echo translate(
'title_text'); ?>:</td>
519 <input type=
"text" name=
"title" id=
"f_title" style=
"width:100%" title=
"Your Image Title" value=
"<?php echo htmlspecialchars($_REQUEST['f_title']) ?>" />
524 <div align=
"center" id=
"show_create_button" style=
"display: block; visibility: visible;">
525 <input type=
"button" name=
"show" value=
"Create Image" onclick=
"toggleCreateImage();" />
531 <div
id=
"show_upload_error" style=
"background:#cc0000;color:#ffffff;display:none; visibility:hidden;padding:0.1cm;">
536 <td><div
id=
"show_create_image_label1" style=
"display: none; visibility: hidden;">Create an image:</div></td>
537 <td><div
id=
"show_create_image1" style=
"display: none; visibility: hidden;"><input name=
"create_image_upload" id=
"create_image_upload" type=
"file" /></div></td>
540 <td><div
id=
"show_create_image_label2" style=
"display: none; visibility: hidden;">Create under:</div></td>
541 <td><div
id=
"show_create_image2" style=
"display: none; visibility: hidden;"><?php asset_finder(
'f_create_root_node',
'0', Array(),
''); ?></div></td>
544 <td align=
"center" colspan=
"2"><div
id=
"show_create_image_submit" style=
"display: none; visibility: hidden;"><input type=
"submit" name=
"create_image_submit" value=
"Create & Use Image" onclick=
"submitCreateImage();" /><input type=
"button" name=
"cancel_create_image" value=
"Cancel" onclick=
"toggleCreateImage();" /></div></td>
549 <div
id=
"create_image_frame_div" style=
"display:none;visibility:hidden;">
550 <iframe
id=
"create_image_frame" name=
"create_image_frame" src=
""></iframe>
559 <td valign=
"top" width=
"100%" colspan=2>
561 <legend><b><?php echo translate(
'optional_attributes'); ?></b></legend>
562 <table style=
"width:100%">
564 <td valign=
"top" class=
"label" nowrap=
"nowrap"><?php echo translate(
'longdesc_text'); ?>:</td>
567 if (!empty($_GET[
'f_longdesc'])) {
568 if (preg_match(
"/^\d+$/", $_GET[
'f_longdesc']) && $_GET[
'f_longdesc'] !=
"0") {?>
569 Enter URL manually<br />
570 <?php echo translate(
'protocol'); ?> <?php combo_box(
'f_longdesc_protocol', $url_protocol_options,
'',
'style="font-family: courier new; font-size: 11px;"'); ?>
571 <?php echo translate(
'link'); ?> <?php text_box(
'f_longdesc_link',
'', 40, 0)?>
572 <br /><br />or choose a Standard
Page asset<br />
573 <?php asset_finder(
'f_longdesc', $_GET[
'f_longdesc'], Array(
'page_standard' =>
'D'),
''); ?>
574 <br /><br />If you enter URL manually, current asset in the asset finder must be cleared .<br />
578 if (preg_match_all(
'/^(http:\/\/|https:\/\/){1}(.*)$/', $_GET[
'f_longdesc'], $matches) === FALSE ||
579 empty($matches[0])) {?>
580 Enter URL manually<br />
581 <?php echo translate(
'protocol'); ?> <?php combo_box(
'f_longdesc_protocol', $url_protocol_options, FALSE,
'',
'style="font-family: courier new; font-size: 11px;"'); ?>
582 <?php echo translate(
'link'); ?> <?php text_box(
'f_longdesc_link', $_GET[
'f_longdesc'], 40, 0)?>
583 <br /><br />or choose a Standard
Page asset<br />
584 <?php asset_finder(
'f_longdesc',
'0', Array(
'page_standard' =>
'D'),
''); ?>
587 Enter URL manually<br />
588 <?php echo translate(
'protocol'); ?> <?php combo_box(
'f_longdesc_protocol', $url_protocol_options, FALSE, $matches[1][0],
'style="font-family: courier new; font-size: 11px;"'); ?>
589 <?php echo translate(
'link'); ?> <?php text_box(
'f_longdesc_link', $matches[2][0], 40, 0)?>
590 <br /><br />or choose a Standard
Page asset<br />
591 <?php asset_finder(
'f_longdesc',
'0', Array(
'page_standard' =>
'D'),
''); ?>
597 Enter URL manually<br />
598 <?php echo translate(
'protocol'); ?> <?php combo_box(
'f_longdesc_protocol', $url_protocol_options,
'',
'style="font-family: courier new; font-size: 11px;"'); ?>
599 <?php echo translate(
'link'); ?> <?php text_box(
'f_longdesc_link',
'', 40, 0)?>
600 <br /><br />or choose a Standard
Page asset<br />
601 <?php asset_finder(
'f_longdesc',
'0', Array(
'page_standard' =>
'D'),
''); ?>
604 <br /><br />If you enter URL manually, current asset in the asset finder must be cleared .<br />
611 <td valign=
"center" align=
"center" rowspan=2 width=
"50%">
612 <fieldset
class=
"prev">
613 <legend><b><?php echo translate(
'preview'); ?></b></legend>
614 <table
class=
"preview" >
616 <td
id=
"image_container" align=
"center" valign=
"center" height=
"160px" width=
"340px">
617 <img
id=
"preview_image" src=
"<?php echo sq_web_path('fudge') ?>/wysiwyg/images/blank.gif" width=
"0" height=
"0">
623 <td valign=
"top" width=
"50%">
625 <legend><b><?php echo translate(
'layout'); ?></b></legend>
628 <td
class=
"label" width=
"30%"><?php echo translate(
'alignment'); ?>:</td>
630 <select size=
"1" name=
"align" id=
"f_align" title=
"<?php echo translate('positioning_of_this_image'); ?>">
632 if (!isset($_REQUEST[
'f_align'])) {
633 $_REQUEST[
'f_align'] =
'baseline';
635 $options_array = Array(
637 'left' => translate(
'left'),
638 'right' => translate(
'right'),
639 'texttop' => translate(
'texttop'),
640 'absmiddle' => translate(
'absmiddle'),
641 'baseline' => translate(
'baseline'),
642 'absbottom' => translate(
'absbottom'),
643 'bottom' => translate(
'bottom'),
644 'middle' => translate(
'middle'),
645 'top' => translate(
'top'),
647 foreach ($options_array as $value => $text) {
648 ?><option value=
"<?php echo $value?>" <?php echo ($_REQUEST[
'f_align'] == $value) ?
'selected="1"' :
''?>><?php echo $text?></option><?php
655 <td
class=
"label"><?php echo translate(
'border_thickness'); ?>:</td>
657 <input type=
"text" name=
"border" id=
"f_border" size=
"5" title=
"Leave empty for no border" value=
"<?php echo htmlspecialchars($_REQUEST['f_border']) ?>" />
661 <td
class=
"label"><?php echo translate(
'horizontal'); ?>:</td>
663 <input type=
"text" name=
"horiz" id=
"f_horiz" size=
"5" title=
"Horizontal padding" value=
"<?php echo htmlspecialchars($_REQUEST['f_horiz']) ?>" />
667 <td
class=
"label"><?php echo translate(
'vertical'); ?>:</td>
669 <input type=
"text" name=
"vert" id=
"f_vert" size=
"5" title=
"Vertical padding" value=
"<?php echo htmlspecialchars($_REQUEST['f_vert']) ?>" />
673 <td
class=
"label"><?php echo translate(
'name'); ?>:</td>
675 <input type=
"text" name=
"image_id" id=
"f_image_id" size=
"20" title=
"Name" value=
"<?php echo htmlspecialchars($_REQUEST['f_image_id']) ?>" />
679 <td
class=
"label"><?php echo translate(
'class'); ?>:</td>
681 <input type=
"text" name=
"image_class" id=
"f_image_class" size=
"20" title=
"Class" value=
"<?php echo htmlspecialchars($_REQUEST['f_image_class']) ?>" />
689 <td valign=
"top" width=
"50%">
691 <legend><b><?php echo translate(
'size'); ?></b></legend>
692 <table style=
"width:100%">
695 $disable_resize = $GLOBALS[
'SQ_SYSTEM']->getUserPrefs(
'content_type_wysiwyg',
'SQ_WYSIWYG_DISABLE_IMAGE_RESIZE');
697 <td
class=
"label" width=
"30%"><?php echo translate(
'width'); ?>:</td>
700 switch ($disable_resize) {
702 echo htmlspecialchars($_REQUEST[
'f_width']).
' px';
704 <input type=
"hidden" name=
"width" id=
"f_width" size=
"5" title=
"Width" value=
"<?php echo htmlspecialchars($_REQUEST['f_width']) ?>" />
709 <input type=
"text" name=
"width" id=
"f_width" size=
"5" title=
"Width" value=
"<?php echo htmlspecialchars($_REQUEST['f_width']) ?>" /> px
717 <td
class=
"label"><?php echo translate(
'height'); ?>:</td>
720 switch ($disable_resize) {
722 echo htmlspecialchars($_REQUEST[
'f_height']).
' px';
724 <input type=
"hidden" name=
"height" id=
"f_height" size=
"5" title=
"Height" value=
"<?php echo htmlspecialchars($_REQUEST['f_height']) ?>" />
729 <input type=
"text" name=
"height" id=
"f_height" size=
"5" title=
"Height" value=
"<?php echo htmlspecialchars($_REQUEST['f_height']) ?>" /> px
742 <div style=
"margin-top: 5px; text-align: right;">
744 <button type=
"button" name=
"ok" onclick=
"return onOK();"><?php echo translate(
'ok'); ?></button>
745 <button type=
"button" name=
"cancel" onclick=
"return onCancel();"><?php echo translate(
'cancel'); ?></button>
755 <!-- Search results -->
756 <div
id=
"new-message-popup"><div
id=
"new-message-popup-titlebar"><div
id=
"new-message-popup-close">[ <a href=
"#" onclick=
"document.getElementById('new-message-popup').style.display = 'none'; return false;">x</a> ]</div><span
id=
"new-message-popup-title">Searched
for ''</span></div>
757 <div
id=
"new-message-popup-details"></div>
759 <div
id=
"search-wait-popup"><div
id=
"search-wait-popup-titlebar"><div
id=
"search-wait-popup-close">[ <a href=
"#" onclick=
"document.getElementById('search-wait-popup').style.display = 'none'; return false;">x</a> ]</div><span
id=
"search-wait-popup-title">Search in Progress</span></div>
760 <div
id=
"search-wait-popup-details">Your search is being processed, please wait...</div>
763 <script type=
"text/javascript"><!--
765 var results_per_page = <?php echo $GLOBALS[
'SQ_SYSTEM']->getUserPrefs(
'search_manager',
'SQ_SEARCH_BACKEND_PAGE_SIZE') !== FALSE ? $GLOBALS[
'SQ_SYSTEM']->getUserPrefs(
'search_manager',
'SQ_SEARCH_BACKEND_PAGE_SIZE') : 5; ?>;
766 var total_results = 0;
768 function jump_to_search_results(page) {
770 document.getElementById(
"search-result-page-" + current).style.display =
'none';
771 document.getElementById(
"search-result-page-" + page).style.display =
'block';
774 document.getElementById(
"sq-search-results-page-start").innerHTML = (results_per_page * (page - 1)) + 1;
775 document.getElementById(
"sq-search-results-page-end").innerHTML = Math.min(total_results, results_per_page * page);
777 for (i = ((page - 1) * results_per_page) + 1; i <= Math.min(total_results, page * results_per_page); i++) {
780 document.getElementById(
"search-result-" + i +
"-expand-link").innerHTML =
'+';
781 document.getElementById(
"search-result-" + i +
"-detail").style.display =
'none';
787 function set_asset_finder_from_search(assetid, label, url, linkid, filename, alt, width, height) {
788 document.cookie =
'lastSelectedAssetId=' + escape(assetid);
790 ASSET_FINDER_OBJ.set_hidden_field(
'f_imageid[assetid]', assetid);
791 ASSET_FINDER_OBJ.set_hidden_field(
'f_imageid[url]', url);
792 ASSET_FINDER_OBJ.set_hidden_field(
'f_imageid[linkid]', linkid);
793 ASSET_FINDER_OBJ.set_text_field(
'sq_asset_finder_f_imageid_label', (assetid == 0) ?
'' : label +
' (Id : #' + assetid +
')');
795 document.getElementById(
"new-message-popup").style.display =
'none';
796 document.getElementById(
"f_alt").value = alt;
798 image_info =
new Array();
799 image_info[
'name'] = filename;
800 image_info[
'alt'] = alt;
801 image_info[
'width'] = width;
802 image_info[
'height'] = height;
804 image_info_ser = var_serialise(image_info);
805 populateImageInfo(image_info_ser);