The new features, expected to be announced at Apples world-wide developer conference beginning June 11, will allow iCloud users to share sets of photos with other iCloud users and to comment on them, these people said Apple is trying to better compete in the red-hot market for photo sharing, dominated by fast-growing online services such as Facebook Inc. and mobile apps like Instagramwhich Facebook has agreed to acquire for $1 billion.