Skip to main content
池田 博史
Participant
June 22, 2021
質問

[25.3.1 macOS]Photoshopで作成したpsd画像に日本語のクリッピングパスが使用されていると、Illustratorに配置してもクリッピングパスが反映されない

  • June 22, 2021
  • 返信数 4.
  • 5394 ビュー

再現手順

  1. Photoshop v21.2.9(2020)やv22.2(2021)など日本語のクリッピングパスでの不具合がないバージョンで、日本語のクリッピングパスを適用したpsd画像を作成。
  2. Illustrator v25.3.1(2021)で、1で作成した画像を配置するとクリッピングパスが適用されずに配置される。Photoshopでクリッピングパスを欧文にすれば、Illustrator v25.3.1でクリッピングパスが適用された状態で配置される。なおIllustrator v24.3および v25.2.3ではこの不具合は再現されませんでした。

 

※photoshopで作成した画像フォーマットが、eps,tiff.pdfの場合はこの不具合は再現されませんでした。

 

動作環境

macOS Big Sur バージョン11.4

MacBook Pro 15-inch 2016

    このトピックへの返信は締め切られました。

    返信数 4

    池田 博史
    池田 博史作成者
    Participant
    June 24, 2021

    自分用に作った問題のあるpsd画像のクリッピングパス名を変換するapplescriptです。ファイルを添付できなかったのでコードをペーストしました。利用する場合はスクリプトエディタにペーストしてください。

    --イラストレーターに配置されたpsd画像のクリッピングパス名が欧文英数字スペース以外の場合、Photoshopでクリッピングパス名をPath 1に変換して上書き保存するスクリプトです。
    --使い方:イラストレーターで配置したpsd画像に問題のあるファイルを開いた後にこのスクリプトを実行してください。
    --念の為、対象データのバックアップを行ってから使用してください。このスクリプトを利用した際になにか問題が生じても、当方では一切責任を負えません。
    
    use AppleScript version "2.4"
    use framework "Foundation"
    use scripting additions
    
    local regularExpression
    set regularExpression to (current application's NSRegularExpression's regularExpressionWithPattern:"^[\\x200-9a-zA-Z]+$" options:0 |error|:(missing value))
    
    tell application id "com.adobe.illustrator"
    	try
    		set placedItemFIlePaths to file path of placed items of current document whose (name ends with ".psd")
    	on error massage number n
    		activate
    		display alert massage
    		return n
    	end try
    	if (count placedItemFIlePaths) is 0 then return 0
    end tell
    
    tell application id "com.adobe.photoshop"
    	set versionStr to current application's NSString's stringWithString:version
    	if (round ((versionStr's floatValue()) * 10)) > 222 then
    		activate
    		display alert "Photoshopのバージョンが v22.2以下で動作します。"
    		return 0
    	end if
    	repeat with processingFilePath in placedItemFIlePaths
    		repeat 1 times
    			open file processingFilePath
    			tell current document
    				set clippingPath to (path items whose kind is clipping)
    				if (count clippingPath) is not 1 then
    					close saving no
    					exit repeat
    				end if
    				set clippingPathName to name of item 1 of clippingPath
    				set matcheNum to (regularExpression's numberOfMatchesInString:clippingPathName options:0 range:{location:0, |length|:count clippingPathName})
    				if matcheNum is 0 then
    					repeat with i from 1 to 10
    						if ("Path " & i) is not in name of path items then
    							set name of item 1 of clippingPath to "Path " & i
    							exit repeat
    						end if
    					end repeat
    					save
    				end if
    				close saving no
    			end tell
    		end repeat
    	end repeat
    end tell

     

    Ten A
    Community Expert
    Community Expert
    June 22, 2021

    わたしのところのCatalinaでも再現しました。しかしWindows10は大丈夫でした。一連のmac版におけるUnicodeの取り扱いに絡むものでしょう(^-^;

    katayanagi51
    Community Expert
    Community Expert
    June 22, 2021

    Windows10pro (20H2) ですが,クリッピングパスは適用されました。

    Mac版だけなのかしら…^^;;

     

    monokano
    Community Expert
    Community Expert
    June 22, 2021

    macOS 10.14.6 Mojave

    すべて再現しました。かなり深刻なバグですね…。

    UserVoiceへの投稿をお願いできますか? 日本語で大丈夫です。

    UserVoice - Illustrator (デスクトップ版) バグ

     

    池田 博史
    池田 博史作成者
    Participant
    June 22, 2021

    アドバイスを頂いたUserVoiceに同じ内容の記事をカテゴリその他で投稿しました。

    Ten A
    Community Expert
    Community Expert
    June 22, 2021