mofeewong Posted January 11, 2010 Share Posted January 11, 2010 如题产品图片上传以后,自动生成的thickbox图片在产品页面前台查看的时候会自动缩小到457px*457px,请问如何修改这个比例大小? Link to comment Share on other sites More sharing options...
21846657 Posted January 11, 2010 Share Posted January 11, 2010 Back Office >> Preferences >> Image >> 修改thickbox Link to comment Share on other sites More sharing options...
mofeewong Posted January 11, 2010 Author Share Posted January 11, 2010 Back Office >> Preferences >> Image >> 修改thickbox 可能是我没有表述清楚,我在BO设置的是thickbox像素为600x600,但实际上我在前台浏览图片的时候,在thickbox窗口内,图片被自动缩小成457x457,而不是600x600,见图 Link to comment Share on other sites More sharing options...
21846657 Posted January 11, 2010 Share Posted January 11, 2010 238-1177-thickbox.jpg原始图片的长宽是多少? Link to comment Share on other sites More sharing options...
mofeewong Posted January 11, 2010 Author Share Posted January 11, 2010 238-1177-thickbox.jpg原始图片的长宽是多少? 400x567 Link to comment Share on other sites More sharing options...
21846657 Posted January 11, 2010 Share Posted January 11, 2010 用于thickbox的图片宽度或高度要大于600px。这张图片,你如果用photoshop增加图片的宽度到567px,或则缩短高度到400px,prestashop的thickbox就回自动缩放图片到600x600px。 Link to comment Share on other sites More sharing options...
mofeewong Posted January 11, 2010 Author Share Posted January 11, 2010 用于thickbox的图片宽度或高度要大于600px。这张图片,你如果用photoshop增加图片的宽度到567px,或则缩短高度到400px,prestashop的thickbox就回自动缩放图片到600x600px。 是的,thickbox的工作原理我大概清楚,应该是按照一定的比例缩小的,大概是原始图片的82%,但是我想能不能直接通过程序修改直接实现,这样就不用处理重新处理所有的图片了。:P Link to comment Share on other sites More sharing options...
21846657 Posted January 11, 2010 Share Posted January 11, 2010 你可以设置thickbox的图片规格为400x400,如果产品图片宽度或高度普遍小于400px的话。这样程序就能自动处理了。 Link to comment Share on other sites More sharing options...
mofeewong Posted January 11, 2010 Author Share Posted January 11, 2010 谢谢,稍后看看有没有其他的解决办法 :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now