{"id":1881,"date":"2014-03-31T14:12:06","date_gmt":"2014-03-31T13:12:06","guid":{"rendered":"http:\/\/iamwcew.fr.oracle.com\/blog\/?p=1881"},"modified":"2014-03-31T14:12:06","modified_gmt":"2014-03-31T13:12:06","slug":"conversion-dimages-transparentes-png-avec-webcenter-content-nconvert-et-oit","status":"publish","type":"post","link":"https:\/\/gpmfactory.com\/index.php\/2014\/03\/31\/conversion-dimages-transparentes-png-avec-webcenter-content-nconvert-et-oit\/","title":{"rendered":"Conversion d\u2019images transparentes PNG avec WebCenter Content \/ Nconvert et OIT"},"content":{"rendered":"<p><span style=\"color: #1f497d; background-color: white;\">Si vous observez des mauvaises conversions d&rsquo;images transparentes avec WCC dans le kit WCC Base 10 , alors cela est li\u00e9 au param\u00e9trage du module de conversion <strong>nconvert<\/strong><\/span><\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #1f497d; background-color: white;\"><strong>(xnview)<\/strong>. <\/span> <img decoding=\"async\" src=\"http:\/\/iamwcew.fr.oracle.com\/blog\/wp-content\/uploads\/2014\/03\/033114_1311_Conversiond1.png\" alt=\"\" \/><img decoding=\"async\" src=\"http:\/\/iamwcew.fr.oracle.com\/blog\/wp-content\/uploads\/2014\/03\/033114_1311_Conversiond2.png\" alt=\"\" \/><img decoding=\"async\" src=\"http:\/\/iamwcew.fr.oracle.com\/blog\/wp-content\/uploads\/2014\/03\/033114_1311_Conversiond3.jpg\" alt=\"\" \/><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: #1f497d; background-color: white;\">Image native en PNG \u00a0\u00a0\u00a0\u00a0NOK\u00a0: Image convertie en JPG <\/span><\/p>\n<p>Cela se manifeste, en partculier, lors de conversion PNG vers JPG La conversion PNG vers PNG ,n&rsquo;est pas concern\u00e9e. <span style=\"color: #1f497d; background-color: #f7f7f7;\">Ajouter les param\u00e8tres suivants\u00a0:<\/span><span style=\"color: #333333;\"><span style=\"font-family: Courier New; font-size: 14pt; background-color: #f7f7f7;\"><strong>-transpcolor 255 255 255 -merge_alpha<\/strong><\/span><\/span> <span style=\"color: #1f497d; background-color: white;\">Source\u00a0: <a href=\"http:\/\/newsgroup.xnview.com\/viewtopic.php?t=15651\">http:\/\/newsgroup.xnview.com\/viewtopic.php?t=15651<\/a><\/span><\/p>\n<p><span style=\"color: #1f497d; background-color: white;\">Ajouter un set de conversion @ResultSet TransparentRenditions dans fichier <span style=\"font-family: Courier New;\"><strong>extraRendition_definitions.hda<\/strong><\/span> (dans \/app\/domains\/content\/ucm\/ibr\/data\/configuration\/dam) et ne pas oublier de mettre \u00e0 jour\u00a0la vue\u00a0: <span style=\"font-family: Courier New;\">PackagedConversionsList <\/span>via l&rsquo;applet d&rsquo;administration de WCC. Si pas visible, d\u00e9marrer une session priv\u00e9e dans le navigateur. <\/span> <img decoding=\"async\" class=\" alignleft\" src=\"http:\/\/iamwcew.fr.oracle.com\/blog\/wp-content\/uploads\/2014\/03\/033114_1311_Conversiond4.png\" alt=\"\" \/> <span style=\"color: #1f497d; background-color: white;\">Le motif devient\u00a0: <\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: #1f497d; font-family: Courier New; background-color: white;\">&lt;Rendition Name&gt; nConvert Extra &lt;$InFilePath$&gt; -out jpeg -o &lt;$outFile$&gt;.jpg -resize 1000 1000 -ratio -dpi 72 <strong>-transpcolor 255 255 255 -merge_alpha<\/strong> &lt;$inFile$&gt; A 1000&#215;1000 Pixels JPEG for use in Web Applications <\/span><\/p>\n<p><span style=\"color: #1f497d; background-color: white;\">Pour affiner les tests, utiliser directement le module <strong>nconvert<\/strong> en ligne de commande. Cela \u00e9vitera d&rsquo;incessants red\u00e9marrages de WCC\u00a0. Le fichier principal contenant les <em>renditions<\/em> \u00ab\u00a0usine\u00a0\u00bb s&rsquo;appelle <\/span><span style=\"color: black; font-family: Courier New; background-color: white;\"><strong>damconverter_basedefinitions.hda <\/strong><\/span><span style=\"color: #1f497d; background-color: white;\">et se trouve dans \/oracle\/fmw\/Oracle_ECM1\/ucm\/idc\/components\/DAMConverter\/resources\/ <\/span> <span style=\"color: #1f497d; background-color: white;\">Le module de conversion par d\u00e9faut est <strong>ImageExport<\/strong>, ce qui correspond \u00e0 la technologie Outside In. Les <em>Rendition set<\/em> qui s&rsquo;appellent\u00a0<em>ThumbnailOnly<\/em>, <em>BasicRenditions<\/em> et <em>MultipleFormats<\/em> sont contr\u00f4l\u00e9s par ce fichier de param\u00e8tres. Il faudra l\u00e0 aussi effectuer des actions correctives pour prendre en compte la transparence\u00a0: <\/span> <span style=\"color: #1f497d; background-color: white;\">Lire \u00e9galement la note suivante\u00a0pour l&rsquo;usage du module de conversion Outside In: <\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; background-color: white;\"><em>Photoshop files lose their transparent background when converted to .png or .gif using Out-of-the-box DigitalAssetManager (OutsideInFilters) (Doc ID 1568157.1) <\/em><\/span><\/p>\n<p><span style=\"color: #1f497d; background-color: white;\">Sans action de correction, le ph\u00e9nom\u00e8ne est tr\u00e8s g\u00eanant si l&rsquo;image pr\u00e9sente un halo semi transparent et s&rsquo;il y a un canal alpha qu&rsquo;OIT ne sait pas g\u00e9rer. <\/span> <span style=\"color: #1f497d;\">Autres sources d&rsquo;information sur le m\u00eame sujet\u00a0: <\/span><\/p>\n<ul>\n<li><a href=\"http:\/\/docs.oracle.com\/cd\/E23943_01\/doc.1111\/e10800\/c04_damia_all.htm#CBHBCGIA\">http:\/\/docs.oracle.com\/cd\/E23943_01\/doc.1111\/e10800\/c04_damia_all.htm#CBHBCGIA<\/a><\/li>\n<li><a href=\"https:\/\/blogs.oracle.com\/kyle\/entry\/conversions_in_webcenter_content\">https:\/\/blogs.oracle.com\/kyle\/entry\/conversions_in_webcenter_content<\/a><\/li>\n<li><a href=\"https:\/\/blogs.oracle.com\/kyle\/entry\/lolcats_your_ucm_conversion_se\">https:\/\/blogs.oracle.com\/kyle\/entry\/lolcats_your_ucm_conversion_se<\/a><\/li>\n<li>\n<div><a href=\"https:\/\/blogs.oracle.com\/kyle\/entry\/enabling_access_to_static_rend\">https:\/\/blogs.oracle.com\/kyle\/entry\/enabling_access_to_static_rend<\/a><\/div>\n<\/li>\n<\/ul>\n<p>Le produit <b>xnConvert<\/b> (qui repr\u00e9sente un UI au dessus de Nconvert) est tr\u00e8s int\u00e9ressant \u00e0 t\u00e9l\u00e9charger sur son poste car il permet de tester rapidement des types de conversions <a href=\"http:\/\/www.xnview.com\/en\/xnconvert\/#screenshots\">http:\/\/www.xnview.com\/en\/xnconvert\/#screenshots<\/a> <span style=\"line-height: 1.714285714; font-size: 1rem;\">Les possibilit\u00e9s sont innombrables\u00a0! Il suffit juste d\u2019ajouter un <\/span><i style=\"line-height: 1.714285714; font-size: 1rem;\">rendition set<\/i><span style=\"line-height: 1.714285714; font-size: 1rem;\"> dans WCC avec les bons param\u00e8tres. <\/span>Exemple de ligne de commande\u00a0g\u00e9n\u00e9r\u00e9e automatiquement lorsque l\u2019on demande un look retro avec extraction d\u2019une metadatada <i>comment<\/i> et incrustation dans l\u2019image\u00a0:<\/p>\n<pre>nconvert -text_font MS Shell Dlg 2 32 -text_color 32 255 255 -text_back 255 0 0 -text_flag top-left -text_pos 0 0 -text_rotation 0 -text \"{EXIF:XPComment}\"<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si vous observez des mauvaises conversions d&rsquo;images transparentes avec WCC dans le kit WCC Base 10 , alors cela est li\u00e9 au param\u00e9trage du&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,22,10],"tags":[],"ppma_author":[150],"class_list":["post-1881","post","type-post","status-publish","format-standard","hentry","category-demo-2","category-dev","category-francais","category-notes"],"authors":[{"term_id":150,"user_id":1,"is_guest":0,"slug":"admin8700","display_name":"Patrick","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/209d5ed69b74d288390621ab4c1d3773?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/1881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/comments?post=1881"}],"version-history":[{"count":0,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/1881\/revisions"}],"wp:attachment":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/media?parent=1881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/categories?post=1881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/tags?post=1881"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/ppma_author?post=1881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}