Forum

Questions and discussions

Show image file size MB instead of dpi

Script's setup and configuration

Show image file size MB instead of dpi

Postby oceankane » Sat Mar 16, 2013 7:55 pm

I would like to remove the @dpi and include the file size in MB. Is there a way to show the images file size instead of(or in addition to) the resolution. For example on istockphoto.com they show it like:

XXXLarge 5616 x 3744 px 15.44 MB 100 Credits

this script shows resolution:

Large 2563 x 3186 px @ 300 dpi 25 Credits

I would like to remove the @dpi and include the file size in MB. If this can't be done how can I just remove the @dpi in the script. Thanks
oceankane
 
Posts: 13
Joined: Sun Jan 15, 2012 10:47 pm

Re: Show image file size MB instead of dpi

Postby admin » Sun Mar 17, 2013 8:27 am

It is impossible to show MBs because photo sizes are generated only when someone purchases them (if you don't upload via java uploader). So the files don't exists except an original photo. It is impossible to define their size in MBs.

You can remove dpi in the file:
/members/content_photo.php
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.