Menu

Memory use when converting

Help
2004-04-18
2004-05-02
  • Allan Hřiberg

    Allan Hřiberg - 2004-04-18

    The first time I view a new album my server ususally runs out of memory because several images are re-scaled at the same time. Is there an easy way to tell phpix to only use one convert thread at a time?

     
    • David Johnson

      David Johnson - 2004-04-24

      Are you using the internal or external method of re-scaling the images. As far as I can tell it a single thread process for this but I can investigate farther based on the information that you provide

      Cheers

      David

       
    • Allan Hřiberg

      Allan Hřiberg - 2004-05-02

      I'm using the external method. I tried making a new album (called test) with 4 images in it. When I browsed into that one, the output of "ps" contained this:

      5022 ?        S      0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
      5023 ?        S      0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
      5024 ?        S      0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
      5025 ?        S      0:00 [convert.sh]
      5026 ?        S      0:00 [convert.sh]
      5027 ?        S      0:00 [convert.sh]
      5028 ?        S      0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
      5029 ?        S      0:00 [convert.sh]
      5038 ?        D      0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd... 5039 ?        D      0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
      5040 ?        D      0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
      5041 ?        D      0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...

      Regards,
      Allan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.