[Development] Rotating JPEG images by default

Konstantin Ritt ritt.ks at gmail.com
Thu Apr 23 14:12:13 CEST 2015


2015-04-23 16:04 GMT+04:00 Alberto Mardegan <mardy at users.sourceforge.net>:

> On 04/23/2015 02:34 PM, André Somers wrote:
> > What is the problem with using
> >
> > Image {
> >      source:  "someImage.jpg"
> >      autorotate: true
> > }
> >
> > Again: note that QImage != QML Image
> >
> > I don't like globals if they can be avoided. In this case, I think they
> can.
>
> I could certainly live with that, but if you renamed "autorotate" to
> "showWithCorrectRotation" you'd have to agree that it's a rather silly
> flag. Of course I want my images to appear with the correct rotation. :-)
>
> I do agree that for QImage leaving the autorotation off can make sense
> in some cases. But for QML Image, I cannot think of a single case where
> I wouldn't want a JPEG to be automatically rotated.
>

The behavior must be consistent for both.
I cannot think of a single case where you would want text direction to be
automatically applied in QML but not in QTextDocument (not an ideal
example, but still).

Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150423/a609da8f/attachment.html>


More information about the Development mailing list