Jump to content

New image params


Luke

Recommended Posts

These are optional image params that are being added to limit the size of the api data being returned.

 

  • EnableImages (true/false). Defaults to true. Easy way to disable all images.
  • ImageTypeLimit (int). Defaults to no limit. Limits the number of images per type that are returned. In most cases, only one is needed
  • EnableImageTypes = comma delimited list of image types to return. Defaults to all images. Example: EnableImageTypes=primary,logo,thumb
  • Like 1
Link to comment
Share on other sites

You can go ahead and include these params on any endpoint that returns lists of items, although it will take time to get them all added.

Link to comment
Share on other sites

Yes you can see a big benefit just with ImageTypeLimit=1 alone. that will limit to 1 backdrop. 

 

If you want you can then further improve using EnableImageTypes to only include image types you actually use

Link to comment
Share on other sites

xnappo

What I am doing is building a list of images in the background using the full call.  This refreshes every so often, but this way when the user browses around the JSON data is smaller - giving the double benefit of smaller data transfer and less dictionary look-ups.

 

xnappo

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...