我正在为一幅满是照片的壁画做一个正面展示。
我把我的照片建成这样:
ticket=myTicket
其中,myHost是服务器,myTicket是在这个url中生成的票证:
http://myHost.com:8080/alfresco/service/api/login?u=login&pw=password这个url正确地显示了图片,但是我想使用php拇指来调整它的大小,当我尝试在我的图片上使用它时,我会在脚本和下面的日志上得到一个http 500错误:
PHP Warning: getimagesize(http://myHost.com:8080/share/proxy/alfresco-noauth/api/node/content/workspace/SpacesStore/bf0a8b21-b8d9-487d-a529-dee8c49d7c6f/filetitle.jpg?alf_ticket=myTicket): failed to open stream: HTTP request failed! HTTP/1.1 401 Non-Autorisé我不应该点击认证,因为我的链接有一个有效的票证(当我正常显示我的图片时,我不会点击认证)
发布于 2013-08-02 15:33:49
就像杰夫所说,阿尔弗雷科已经创建了缩略图。因此,您可能可以使用:
http://myHost.com:8080/alfresco/service/api/node/workspace/SpacesStore/bf0a8b21-b8d9-487d-a529-dee8c49d7c6f/content/thumbnails/doclib?c=queue&ph=true&alf
alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.desc.xml的Desc
<url>/api/node/{store_type}/{store_id}/{id}/content{property}/thumbnails/{thumbnailname}?c={queueforcecreate?}&ph={placeholder?}</url>
<url>/api/path/{store_type}/{store_id}/{id}/content{property}/thumbnails/{thumbnailname}?c={queueforcecreate?}&ph={placeholder?}</url>
<url>/api/node/{store_type}/{store_id}/{id}/content{property}/thumbnails/{thumbnailname}/{filename}?c={queueforcecreate?}&ph={placeholder?}</url>
<url>/api/path/{store_type}/{store_id}/{id}/content{property}/thumbnails/{thumbnailname}/{filename}?c={queueforcecreate?}&ph={placeholder?}</url>https://stackoverflow.com/questions/17995758
复制相似问题