Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by Rubén, jonsca Mar 31 at 1:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking for us to recommend or find a Web Application are off-topic and out of scope, as they tend to attract opinionated answers and spam. However, your question may be on topic at Software Recommendations if you can rewrite it so that it meets their quality guidelines" – Rubén, jonsca
If this question can be reworded to fit the rules in the help center, please edit the question.

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

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

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

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
    
This link no longer works. – Al E. Oct 4 '15 at 0:04

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