{"id":12403,"date":"2017-02-16T18:30:50","date_gmt":"2017-02-16T17:30:50","guid":{"rendered":"https:\/\/www.adventori.com\/fr\/?p=12403"},"modified":"2018-01-18T15:07:47","modified_gmt":"2018-01-18T14:07:47","slug":"dynamiser-adapter-taille-dune-image-animate","status":"publish","type":"post","link":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/","title":{"rendered":"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE"},"content":{"rendered":"<a style=\"color: grey;\" href=\"\/?page_id=11761\">Documentation DCO Enabler -> <\/a><a style=\"color: grey;\" href=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/\">ENABLER ADOBE ANIMATE CC -> <\/a><a style=\"color: grey;\" href=\"\/?p=12403\">DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE<\/a>\r\n<h3 id=\"image\" style=\"text-align: center;\"><strong>DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE<\/strong><\/h3><p>&nbsp;<\/p><p>Il est possible de dynamiser les images de votre publicit\u00e9 sans que celles-ci soient d\u00e9form\u00e9es, et en gardant leur enti\u00e8re visibilit\u00e9.<\/p><p>Pour cr\u00e9er une zone d\u2019images dynamiques et redimensionnables, ajoutez un attribut <code>name<\/code>\u00a0unique, et d\u00e9finissez la valeur de l\u2019image (<code>addAndAdaptImage<\/code>) par d\u00e9faut.<\/p><p>Une fois la cr\u00e9a dynamis\u00e9e par notre <code>AdServer<\/code>, les images changeront en fonction des param\u00e8tres \u00e9tablis (G\u00e9olocalisation, m\u00e9t\u00e9o, date\/heure, cookies, retargeting\u2026).<\/p><p>Pour cela, vous devez\u00a0s\u00e9lectionner le conteneur (movieClip) choisi et \u00e9crire le code suivant :<\/p>\r\n<p>\r\n<\/p><pre><strong>\/\/d\u00e9clarer vos images dynamiques<\/strong>\r\nADventori.initData({\r\n<strong style=\"color: red;\">img1<\/strong>: \"http:\/\/img.over-blog-kiwi.com\/0\/40\/01\/35\/201301\/ob_1264f6_location-voiture-guadeloupe-dacia.jpg\",\r\n<strong style=\"color: red;\">img2<\/strong>: \"http:\/\/www.alldigi.com\/wp-content\/uploads\/2010\/06\/DSC_1332-1333-Panorama.jpg\"\r\n});<br \/><strong>\/\/dynamisation de la premi\u00e8re image<\/strong>\r\nADventori.Display.addAndAdaptImage(<strong style=\"color: red;\">this.movieClip_1<\/strong>,ADventori.data.<strong style=\"color: red;\">img1<\/strong>,ADventori.data.img1,<strong>movieClip.width<\/strong>,<strong>movieClip.height<\/strong>);<br \/><br \/><strong>\/\/dynamisation de la deuxi\u00e8me image<\/strong>\r\nADventori.Display.addAndAdaptImage(<strong style=\"color: red;\">this.movieClip_2<\/strong>,ADventori.data.<strong style=\"color: red;\">img2<\/strong>,ADventori.data.img2,<strong>movieClip.width<\/strong>,<strong>movieClip.height<\/strong>);\r\n<\/pre>\r\n<p>R\u00e9sultat :<\/p>\r\n<iframe loading=\"lazy\" width=\"650\" height=\"250\" scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/addAndAdaptImage2.html\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/addAndAdaptImage2.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9chargez l&rsquo;exemple<\/button><\/a><\/p><p><strong>Autres m\u00e9thodes de personnalisation disponibles :<\/strong><\/p><ul><li><strong>addImage<em>(element,url,urldefault)<\/em><\/strong>: Cette m\u00e9thode vous permet d\u2019ajouter une image dans le conteneur sp\u00e9cifi\u00e9 <strong>sans redimensionnement<\/strong>.<\/li><\/ul><p>&nbsp;<\/p>\r\n<p>Autres exemples :<\/p>\r\n\r\n<iframe loading=\"lazy\" width=\"300\" height=\"250\" style=\"box-sizing: border-box; border: solid 1px #000000;\" scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/addAndAdaptImage.html\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate2\/addAndAdaptImage.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9chargez l&rsquo;exemple<\/button><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Apprenez \u00e0 ajouter et adapter vos images dans la banni\u00e8re <\/p>\n","protected":false},"author":11,"featured_media":11784,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[258],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE | ADventori<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE | ADventori\" \/>\n<meta property=\"og:description\" content=\"Apprenez \u00e0 ajouter et adapter vos images dans la banni\u00e8re\" \/>\n<meta property=\"og:url\" content=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/\" \/>\n<meta property=\"og:site_name\" content=\"ADventori\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-16T17:30:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-18T14:07:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@adventori\" \/>\n<meta name=\"twitter:site\" content=\"@adventori\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ismail Azdad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/v4.adventori.com\/#organization\",\"name\":\"ADventori\",\"url\":\"https:\/\/v4.adventori.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/adventori\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/\",\"url\":\"\/media\/Large_Logo-ADventori_Couleur_2015.png\",\"contentUrl\":\"\/media\/Large_Logo-ADventori_Couleur_2015.png\",\"width\":400,\"height\":133,\"caption\":\"ADventori\"},\"image\":{\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/v4.adventori.com\/#website\",\"url\":\"https:\/\/v4.adventori.com\/\",\"name\":\"ADventori\",\"description\":\"LESS ADS, MORE EFFICIENT ADS\",\"publisher\":{\"@id\":\"https:\/\/v4.adventori.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/v4.adventori.com\/search\/{search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#primaryimage\",\"url\":\"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg\",\"contentUrl\":\"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg\",\"width\":540,\"height\":410},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#webpage\",\"url\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/\",\"name\":\"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE | ADventori\",\"isPartOf\":{\"@id\":\"https:\/\/v4.adventori.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#primaryimage\"},\"datePublished\":\"2017-02-16T17:30:50+00:00\",\"dateModified\":\"2018-01-18T14:07:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/v4.adventori.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#webpage\"},\"author\":{\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564\"},\"headline\":\"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE\",\"datePublished\":\"2017-02-16T17:30:50+00:00\",\"dateModified\":\"2018-01-18T14:07:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#webpage\"},\"wordCount\":163,\"publisher\":{\"@id\":\"https:\/\/v4.adventori.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg\",\"articleSection\":[\"DYNAMISATION DES IMAGES\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564\",\"name\":\"Ismail Azdad\",\"sameAs\":[\"https:\/\/www.adventori.com\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE | ADventori","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/","og_locale":"fr_FR","og_type":"article","og_title":"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE | ADventori","og_description":"Apprenez \u00e0 ajouter et adapter vos images dans la banni\u00e8re","og_url":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/","og_site_name":"ADventori","article_published_time":"2017-02-16T17:30:50+00:00","article_modified_time":"2018-01-18T14:07:47+00:00","og_image":[{"width":540,"height":410,"url":"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg","type":"image\/jpeg"}],"twitter_card":"summary","twitter_creator":"@adventori","twitter_site":"@adventori","twitter_misc":{"Written by":"Ismail Azdad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/v4.adventori.com\/#organization","name":"ADventori","url":"https:\/\/v4.adventori.com\/","sameAs":["https:\/\/twitter.com\/adventori"],"logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/","url":"\/media\/Large_Logo-ADventori_Couleur_2015.png","contentUrl":"\/media\/Large_Logo-ADventori_Couleur_2015.png","width":400,"height":133,"caption":"ADventori"},"image":{"@id":"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/v4.adventori.com\/#website","url":"https:\/\/v4.adventori.com\/","name":"ADventori","description":"LESS ADS, MORE EFFICIENT ADS","publisher":{"@id":"https:\/\/v4.adventori.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/v4.adventori.com\/search\/{search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#primaryimage","url":"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg","contentUrl":"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg","width":540,"height":410},{"@type":"WebPage","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#webpage","url":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/","name":"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE | ADventori","isPartOf":{"@id":"https:\/\/v4.adventori.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#primaryimage"},"datePublished":"2017-02-16T17:30:50+00:00","dateModified":"2018-01-18T14:07:47+00:00","breadcrumb":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/v4.adventori.com\/fr\/"},{"@type":"ListItem","position":2,"name":"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE"}]},{"@type":"Article","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#article","isPartOf":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#webpage"},"author":{"@id":"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564"},"headline":"DYNAMISER ET ADAPTER LA TAILLE D\u2019UNE IMAGE","datePublished":"2017-02-16T17:30:50+00:00","dateModified":"2018-01-18T14:07:47+00:00","mainEntityOfPage":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#webpage"},"wordCount":163,"publisher":{"@id":"https:\/\/v4.adventori.com\/#organization"},"image":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-des-images\/dynamiser-adapter-taille-dune-image-animate\/#primaryimage"},"thumbnailUrl":"https:\/\/v4.adventori.com\/media\/ADventori-DynamizeImage.jpg","articleSection":["DYNAMISATION DES IMAGES"],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564","name":"Ismail Azdad","sameAs":["https:\/\/www.adventori.com\/"]}]}},"_links":{"self":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/12403"}],"collection":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/comments?post=12403"}],"version-history":[{"count":26,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/12403\/revisions"}],"predecessor-version":[{"id":19721,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/12403\/revisions\/19721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/media\/11784"}],"wp:attachment":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/media?parent=12403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/categories?post=12403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/tags?post=12403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}