Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Currently using http://shopify.com for my shop.

What are some ways to do custom image sizes in Shopify themes?

I've been using phpThumb to provide thumbnails so far. It recently bugged out and I'm looking for alternatives.

I'm interested in the following ( most preferable at the top ):

  • apps that integrate directly with Shopify
  • cheap cdn services that will perform image resizing on the fly
  • tiny php scripts that handle the image resizing on PHP server ( and cache a local copy )
  • interesting theming techniques using Shopify

I'm interested in all answers and will up-vote all the ones that accomplish this.

The best answer will be one that accomplishes this goal the cheapest and least hacky.

share|improve this question
add comment

5 Answers 5

I started writing one for google app engine but then found an app which is already working great. Tried with one of the shopify images and returned results correctly.

Here is an example returning an image in 35X35

If you don't trust the domain, the source code is available,too.

share|improve this answer
    
Perfect! Thanks. –  troynt Dec 1 '10 at 15:02
add comment

TimThumb is another php resizer that's much lighter than phpThumb although you may need to hack a line or two to make it work well with the CDN.

share|improve this answer
    
Good suggestion! I'll give this a try and accept if it works well. –  troynt Dec 1 '10 at 1:16
add comment

You could do it all with CSS. You could set up custom CSS classes specifying the max-width and height to auto. Depending on how much you are planning to scale the images it may not the most efficient solution for pageloads and bandwidth, but then again you are on Shopify's CDN so it should be alright. The added benefit to this is if you change your theme and need different pictures sizes you don't have to regenerate them all.

share|improve this answer
    
This would waste bandwidth and setting the height/width on CSS can generate unwanted jaggies in the image as not all browsers resizing abilities are the same. –  troynt Dec 1 '10 at 1:11
add comment

You need something different than these sizes?

http://wiki.shopify.com/Product_img_url

share|improve this answer
    
I need something that handles n px by m px, where n and m are any positive integer less than or equal to 800. –  troynt Nov 29 '10 at 15:50
add comment

About 'tiny php scripts that handle the image resizing on PHP server' - You can use code from wordpress source code or search for GD PHP examples.

share|improve this answer
    
Thanks for the suggestion, but if I can help it I really do not wish to dive into WordPress code or writing PHP GD resizing code (reinventing the wheel). –  troynt Nov 27 '10 at 22:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.