Re: Users - Multiple images and thumbnail images

Posted by Daniel Kunkel on
URL: http://ofbiz.116.s1.nabble.com/Multiple-images-and-thumbnail-images-tp139304p139321.html

Hi

Yes, you have a good point that having OFBiz automatically create and
update the pictures would be helpful...  

Anyway, here's my shell script that reads in one picture type, and
creates another in various widths using ImageMagick's convert command.  


#!/bin/bash

for img in *.png
do
  jpg=`echo "$img" | sed 's/png$/jpg/i'`
  echo "converting  $img to $jpg ..."
  convert -resize 60x -strip  $img ../Export/60/$jpg
  convert -resize 150x -strip $img ../Export/150/$jpg
  convert -resize 300x -strip $img ../Export/300/$jpg
  convert -resize 500x -strip $img ../Export/500/$jpg
done




On Thu, 2006-05-18 at 06:08 -0700, rohit2006 wrote:

> hi Daniel,
>
> The way i was looking at is like this. Say you create a new product. You may
> or may not have all four images. In case you have 4 images, the system does
> nothing extra. If you have just one large image the system instantly creates
> other three images and stores them under appropriate folders and updates the
> database. Thus the sytem will not have to create a new image everytime when
> someone views the  product, since the image is alraedy there. And the admin
> will not have to bother about the missing smaller images, as they will be
> created the instant the product is added.
>
> i guess this way it can become much more easy and user friendly. Can you
> also share with us the shell script to resize images and how you use them.
>
> thanks
>
> rohit
>
>
> --
> View this message in context: http://www.nabble.com/Multiple-images-and-thumbnail-images-t1642877.html#a4450185
> Sent from the OFBiz - User forum at Nabble.com.
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users