The Hubzilla
|
Classes | |
class | photo_driver |
Functions | |
photo_factory ($data, $type=null) | |
guess_image_type ($filename, $headers= '') | |
delete_thing_photo ($url, $ob_hash) | |
import_xchan_photo ($photo, $xchan, $thing=false) | |
import_channel_photo_from_url ($photo, $aid, $uid) | |
import_channel_photo ($photo, $type, $aid, $uid) | |
delete_thing_photo | ( | $url, | |
$ob_hash | |||
) |
Referenced by Zotlabs\Module\Thing\get(), and Zotlabs\Module\Thing\init().
guess_image_type | ( | $filename, | |
$headers = '' |
|||
) |
Guess image mimetype from filename or from Content-Type header
Well, this not much better, but at least it comes from the data inside the image, we won't be tricked by a manipulated extension
Referenced by compat_photos_list(), import_channel_photo_from_url(), import_xchan_photo(), photo_upload(), and scale_external_images().
import_channel_photo | ( | $photo, | |
$type, | |||
$aid, | |||
$uid | |||
) |
Referenced by Zotlabs\Module\Import\import_account(), import_channel_photo_from_url(), and import_xchan().
import_channel_photo_from_url | ( | $photo, | |
$aid, | |||
$uid | |||
) |
Referenced by create_identity().
import_xchan_photo | ( | $photo, | |
$xchan, | |||
$thing = false |
|||
) |
Referenced by anon_identity_init(), Zotlabs\Lib\Apps\app_store(), Zotlabs\Lib\Apps\app_update(), discover_by_url(), Zotlabs\Module\Import\import_account(), import_apps(), import_author_rss(), import_author_unknown(), import_objs(), import_xchan(), Zotlabs\Module\Thing\init(), Zotlabs\Daemon\Cron\run(), sync_apps(), sync_objs(), and xchan_store().
photo_factory | ( | $data, | |
$type = null |
|||
) |
Referenced by Zotlabs\Module\Fbrowser\files1(), fix_private_photos(), Zotlabs\Module\Cover_photo\get(), Zotlabs\Module\Profile_photo\get(), Zotlabs\Module\Photos\get(), guess_image_type(), import_channel_photo(), import_xchan_photo(), Zotlabs\Module\Photo\init(), photo_upload(), Zotlabs\Module\Cover_photo\post(), Zotlabs\Module\Profile_photo\post(), Zotlabs\Module\Photos\post(), and scale_external_images().