この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
The problem is that say you have a video asset in the DAM, http://mysite.com/content/dam/mysite/resources/videos/Patient-Centered-Approach.mp4
I am using an HTML5 video player (jwplayer). It has two properties, the video file url and the url of the "poster" (“rendition” or “thumbnail”) image. The rendition technically is stored as a child node of the video in the JCR repository. So the full url to the rendition is:
The problem is that “Patient-Centered-Approach.mp4” cannot be both a file and a folder in the dispatcher cache at the same time, so if the image is requested first then the dispatcher will create a folder named “Patient-Centered-Approach.mp4” with a sub-folder named “jcr:content” down to the PNG image.
If the video is requested before the PNG then the video works, but the PNG will not (because “Patient-Centered-Approach.mp4” is a file in the cache not a folder).
This cannot be an unusual scenario. How is this usually handled?
解決済! 解決策の投稿を見る。
The simplest solution is to change how you refer to the rendition. Instead of
Use
If that doesn't work you might want to try reversing the numbers - 704.405 - normally the thumb selector scripts wants them the reverse of now the rendition is named, however if you are using any custom logic in your rendition creation then it might go the other way.
表示
返信
いいね!の合計
The simplest solution is to change how you refer to the rendition. Instead of
Use
If that doesn't work you might want to try reversing the numbers - 704.405 - normally the thumb selector scripts wants them the reverse of now the rendition is named, however if you are using any custom logic in your rendition creation then it might go the other way.
表示
返信
いいね!の合計
If you don't want to force your client to do a 301 redirect for each image you can just do a Pass-thru but unfortunately the Dispatcher still won't cache the original rendition since it doesn't have a file extension. Below I have a RewriteCond because the RewriteRule would catch requests to the cq5dam.thumbnail.48.48.png so we want those to be skipped but we want to catch all the other images.
RewriteCond %{REQUEST_URI} !.*jcr:content.* RewriteRule ^/content/dam/imagepath/(.*)\.(gif|png|jpg|jpeg)$ /content/dam/imagepath/$1.$2/jcr:content/renditions/original [PT,NC,L]
However if you were dealing with ONLY IMAGES I think a better solution if you want to cache the files is to pass the web rendition in the RewriteRule
RewriteCond %{REQUEST_URI} !.*jcr:content.* RewriteRule ^/content/dam/imagepath/(.*)\.(gif|png|jpg|jpeg)$ /content/dam/imagepath/$1.$2/jcr:content/renditions/cq5dam.web.1280.1280.jpeg [PT,NC,L]
Hi,
I recently stumbled over a similar problem... I have no final solution yet. You may want to try to create a Rewrite-Rule in your webserver, sending a 301 from
http://mysite.com/content/dam/mysite/resources/videos/Patient-Centered-Approach.mp4
to
as an intermediate workaround. This will keep "Patient-Centered-Approach.mp4" uncached and the dispatcher my use it to create a directory. This works for images, though i have not tested if movies are also available at "renditions/original".
Regards achim
表示
返信
いいね!の合計
This is great for Thumbnails! Is there an equivalent for the non-thumbnail/web optimized images?
I tried (with no success): http://mysite.com/content/dam/mysite/resources/images/Patient-Centered-Approach.mp4.web.1280.1280.jp...
Thanks in advance!
表示
返信
いいね!の合計
That URL would work for an image asset - but the asset you are referencing is a mp4 - only thumbnails are created for an MP4. That URL pattern should work with an image asset.
表示
返信
いいね!の合計
I'm sorry, you're right, my URL was wrong, here is a geometrixx URL:
http://localhost:4502/content/dam/geometrixx-outdoors/brand/brand_1_c02.jpg with the rendition:
http://localhost:4502/content/dam/geometrixx-outdoors/brand/brand_1_c02.jpg/jcr:content/renditions/c...
But this doesn't seem to work:
http://localhost:4502/content/dam/geometrixx-outdoors/brand/brand_1_c02.jpg.web.1280.1280.jpg
Do I have something wrong?
表示
返信
いいね!の合計