{"id":1369,"date":"2024-03-13T11:22:16","date_gmt":"2024-03-13T10:22:16","guid":{"rendered":"https:\/\/contecon.de\/picapportwiki\/?page_id=1369"},"modified":"2024-05-23T18:34:22","modified_gmt":"2024-05-23T16:34:22","slug":"getthumbnail","status":"publish","type":"page","link":"https:\/\/contecon.de\/picapportwiki\/getthumbnail\/","title":{"rendered":"getThumbnail"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1369\" class=\"elementor elementor-1369\">\n\t\t\t\t<div class=\"elementor-element elementor-element-789dd83 e-flex e-con-boxed e-con e-parent\" data-id=\"789dd83\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2810890 elementor-widget elementor-widget-heading\" data-id=\"2810890\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">getThumbnail<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5932782 elementor-widget elementor-widget-text-editor\" data-id=\"5932782\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Return the jpg-file of the thumbnail of requested photo.<\/p><p>The size of the thumbnail depend on the <em><strong>thumbs.height<\/strong><\/em> parameter in picapport.properties (default=160 pixel)<\/p><h3 id=\"getThumbnail-APIversion\">API version<\/h3><p>1.0<\/p><p>Working example URL: <a class=\"external-link\" href=\"https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getThumbnail?sid=bdV9KFX26z7zcP5Whjbjnw&amp;index=12\" rel=\"nofollow\">https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getThumbnail?sid=bdV9KFX26z7zcP5Whjbjnw&amp;index=12<\/a><\/p><h3 id=\"getThumbnail-Parametertoidentifythephoto\">Parameter to identify the photo<\/h3><div class=\"table-wrap conf-macro output-block\" data-hasbody=\"false\" data-macro-name=\"include\"><table class=\"confluenceTable stickyTableHeaders\"><thead class=\"tableFloatingHeaderOriginal\"><tr><th class=\"confluenceTh\">Name<\/th><th class=\"confluenceTh\">Type<\/th><th class=\"confluenceTh\">Since<br \/>version<\/th><th class=\"confluenceTh\">Required<\/th><th class=\"confluenceTh\">Value(s)<\/th><\/tr><\/thead><thead class=\"tableFloatingHeader\"><tr><th class=\"confluenceTh\">Name<\/th><th class=\"confluenceTh\">Type<\/th><th class=\"confluenceTh\">Since<br \/>version<\/th><th class=\"confluenceTh\">Required<\/th><th class=\"confluenceTh\">Value(s)<\/th><\/tr><\/thead><tbody><tr><td class=\"highlight-blue confluenceTd\" colspan=\"5\" data-highlight-colour=\"blue\"><p>Option1: get photo from a shared gallery<\/p><\/td><\/tr><tr><td class=\"confluenceTd\">sid<\/td><td class=\"confluenceTd\">string<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\">ShareID. Unique <em><strong>sid<\/strong> <\/em>returned by <em>getSharedGallerys <\/em>or by the Web-GUI function <strong><em>share photos<\/em><\/strong><\/td><\/tr><tr><td class=\"confluenceTd\">index<\/td><td class=\"confluenceTd\">int<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\">Zero based index of requested photo in shared gallery.<\/td><\/tr><tr><td class=\"highlight-green confluenceTd\" colspan=\"5\" data-highlight-colour=\"green\"><p>Option2: get photo from an already executed <em>runQuery<\/em><\/p><\/td><\/tr><tr><td class=\"confluenceTd\">apisid<\/td><td class=\"confluenceTd\">string<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\"><p>Based on the setting of <em><strong>webapi.default.uid<\/strong><\/em> in picapport.properties you may provide one of the following values<\/p><ul><li>Session-ID returned from <em><em>createWebApiSession<\/em><\/em><p>\u00a0<\/p><\/li><li>If you do not provide <em><strong>apisid<\/strong> <\/em>and configuration parameter <em><strong>webapi.default.uid<\/strong><\/em> is set to a valid userid (with same password)<br \/>a WebApi-Session will be created implicitly for the defined user.<\/li><li>If an existing userID is provided (with password set to same value as userID ) a WebApi-Session will be created implicitly<br \/>for the defined userID.<\/li><\/ul><\/td><\/tr><tr><td class=\"confluenceTd\">vid<\/td><td class=\"confluenceTd\">int<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\">ViewID returned from <em>runQuery<\/em><\/td><\/tr><tr><td class=\"confluenceTd\">index<\/td><td class=\"confluenceTd\">int<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\">Zero based index of requested photo in view returned by <em>runQuery<\/em><\/td><\/tr><tr><td class=\"highlight-green confluenceTd\" colspan=\"5\" data-highlight-colour=\"green\">Option3: get a single photo from a unique photoID<\/td><\/tr><tr><td class=\"confluenceTd\">apisid<\/td><td class=\"confluenceTd\">string<\/td><td class=\"confluenceTd\">7.4<\/td><td class=\"confluenceTd\">yes<\/td><td class=\"confluenceTd\">desciption see above option2<\/td><\/tr><tr><td class=\"confluenceTd\" colspan=\"1\">photoid<\/td><td class=\"confluenceTd\" colspan=\"1\">string<\/td><td class=\"confluenceTd\" colspan=\"1\">7.4<\/td><td class=\"confluenceTd\" colspan=\"1\">yes<\/td><td class=\"confluenceTd\" colspan=\"1\"><p>A valid photo id to uniquely identify a photo. see: <em><strong>PhotoID<\/strong> <\/em>on page <a href=\"https:\/\/contecon.de\/picapportwiki\/full-text-search-of-photos-supported-metadata\/\">Full text search of photos &#8211; Supported metadata<\/a><\/p><p>If <em><strong>photoid<\/strong> <\/em>is provided as parameter, <strong><em>vid<\/em> <\/strong>and <em><strong>index<\/strong> <\/em>will be ignored even if they are provided<\/p><p>Since version 7.4 you can query the photoid in the thumbnail view. Select one or more photos and then menu: tags -&gt; &#8222;show metadata details&#8220;<\/p><div class=\"confluence-information-macro confluence-information-macro-note conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"note\"><div class=\"confluence-information-macro-body\"><p>Because the photoid is a base64 encoded String it may contain &#8218;+&#8216; or &#8218;\/&#8216; characters. The proper escaping for the URL is:<\/p><ul><li>%2B for &#8218;+&#8216;<\/li><li>%2F for &#8218;\/&#8216;<\/li><\/ul><p>You can also use JavaScripts <em><strong>encodeURIComponent()<\/strong><\/em> function.<\/p><p>See examples below<\/p><\/div><\/div><\/td><\/tr><tr><td class=\"confluenceTd\" colspan=\"5\"><p>With this option3 it is now possible to directly link to a photo in PicApport without having to deal with sessions etc. if you provide a <em><strong>webapi.default.uid<\/strong><\/em> or a valid userID for apisid<\/p><h3 id=\"getThumbnail-Examples\">Examples<\/h3><ul><li>Get photo metadata of a photo: <a class=\"external-link\" href=\"https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getPhotoMetadata?photoid=vm3%2BZ4%2FGQcOqLNWCOUWleA\" rel=\"nofollow\">https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getPhotoMetadata?photoid=vm3%2BZ4%2FGQcOqLNWCOUWleA<\/a><\/li><li>Get photo: <a class=\"external-link\" href=\"https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getPhoto?photoid=vm3%2BZ4%2FGQcOqLNWCOUWleA\" rel=\"nofollow\">https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getPhoto?photoid=vm3%2BZ4%2FGQcOqLNWCOUWleA<\/a><\/li><li>get thumbnail: <a class=\"external-link\" href=\"https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getThumbnail?photoid=vm3%2BZ4%2FGQcOqLNWCOUWleA\" rel=\"nofollow\">https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getThumbnail?photoid=vm3%2BZ4%2FGQcOqLNWCOUWleA<\/a><\/li><\/ul><\/td><\/tr><\/tbody><\/table><\/div><h3 id=\"getThumbnail-Result\">Result<\/h3><div class=\"table-wrap\"><table class=\"confluenceTable\"><thead><tr><th class=\"confluenceTh\">mime type<\/th><td class=\"confluenceTd\">image\/jpeg<\/td><\/tr><\/thead><tbody><tr><th class=\"confluenceTh\">content<\/th><td class=\"confluenceTd\">requested image<\/td><\/tr><tr><th class=\"confluenceTh\" colspan=\"1\">http status codes<\/th><td class=\"confluenceTd\" colspan=\"1\"><ul><li>200 OK<\/li><li>400 Bad Request<\/li><li>403 Forbidden<\/li><li>404 Not Found<\/li><li>500 Internal Server Error<\/li><li>501 Not implemented<\/li><\/ul><\/td><\/tr><\/tbody><\/table><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4369ed2 e-flex e-con-boxed e-con e-parent\" data-id=\"4369ed2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>getThumbnail Return the jpg-file of the thumbnail of requested photo. The size of the thumbnail depend on the thumbs.height parameter in picapport.properties (default=160 pixel) API version 1.0 Working example URL: https:\/\/en.onlinedemo.picapport.de\/picapportapi\/1.0\/getThumbnail?sid=bdV9KFX26z7zcP5Whjbjnw&amp;index=12 Parameter to identify the photo Name Type Sinceversion Required Value(s) Name Type Sinceversion Required Value(s) Option1: get photo from a shared gallery sid string [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_front_end_style_editor":"no","ocean_post_layout":"full-screen","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"off","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"on","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"off","ocean_display_footer_bottom":"off","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-1369","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/comments?post=1369"}],"version-history":[{"count":7,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1369\/revisions"}],"predecessor-version":[{"id":2160,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1369\/revisions\/2160"}],"wp:attachment":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/media?parent=1369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}