This topic is locked

Image compatibility and legacy format

11/20/2013 1:08:56 PM
PHPRunner General questions
G
greener author

Hi all,

How have people handled the differences in image formats between the way the old PHPRunner versions handled and newer versions. The "compatibility" check mark does not help (causes the image not to display)
old legacy system: yt_poster_AyJaliscoNoTeRajes.jpg
new: [{"name":"\/mnt\/images\/filmimages\/yt_poster_AyJaliscoNoTeRajes.jpg","usrName":"yt_poster_AyJaliscoNoTeRajes.jpg","size":181988,"type":"application\/octet-stream","searchStr":"yt_poster_AyJaliscoNoTeRajes.jpg,!:sStrEnd"}]
I'm thinking the best way to update would be to run a custom php script to update the database to reformat the old/legacy to the new format. The script would need to determine the size of file.
Has anyone done that yet? if so, care to share the script? If not, I'll have one created and post it...
I'm also surprised that the path is "hard coded" in the database. In the above "/mnt/images/filmimages" . I would think that would be a setting somewhere else... I need the absolute path as my images are not stored near my phprunner build files but if I ever move the location, I'll need to manually find/ replace that string...
thanks!

Sergey Kornilov admin 11/20/2013

Path is hardcoded because PHPRunner has an option to upload images to different folder i.e. assigning a separate folder to each user. In this case we have to store path in the database as well.
If you set 'View as' type of this field to 'Image' it will recognize both old and new formats automatically.

G
greener author 11/21/2013



Path is hardcoded because PHPRunner has an option to upload images to different folder i.e. assigning a separate folder to each user. In this case we have to store path in the database as well.
If you set 'View as' type of this field to 'Image' it will recognize both old and new formats automatically.


field was already set to "image" and it is not recognizing both formats. Uploading to support! thanks...

Sergey Kornilov admin 11/21/2013

Thanks, received and answered to personal email. Seems to be working on Demo Account.