开发者

create thumbnail with codeigniter fixed size ;

How do I create thumbnail form original size (any size) to 50 x 50 (fixed size) link text

when add images to lightbox al开发者_如何学Cl images in any size will resize to 50 x 50 dimention how to implement that with codeigniter image class ;

imagine I have image with 600x320 dimensions when i re size it with maintain_ratio "on" it's gave me 50x27 dimensions when i re size it to 50x50 . anyway if I turn maintain_ration "off" it's resized nicely to 50x50 but output is deformed


I'm not exactly sure what you are asking. Do you want to resize an image to 50x50 or do you want to create a lightbox effect. To resize simply follow the instructions in the user guide. They're very straightforward: http://codeigniter.com/user_guide/libraries/image_lib.html

If you want to create a lightbox then you will need to use JavaScript not codeigniter. There are loads out there to choose from for different js frameworks if you don't want to build your own.

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜