# The scale option of \includegraphics does not work after changing the document class [duplicate]

After .cls file changes, `\includegraphics[scale=0.5]{img/GoalHierarchyMetaModel.png}` command gives the following error.

``````! Package keyval Error: scale=0.5 undefined.

See the keyval package documentation for explanation.
Type  H <return>  for immediate help.
...

l.6 ...[scale=0.5]{img/GoalHierarchyMetaModel.png}
``````

MWE can be accessed from google drive in here.

`main_e.tex` is the working one, `main_m.tex` outputs error above. Only difference between those files is `documentclass`.

• `main_e.tex` uses `\documentclass[conference]{IEEEtran}`
• `main_m.tex` uses `\documentclass[chaparabic,ceng,phd,12pt,oneandhalf]{metu}`
-

## marked as duplicate by Heiko Oberdiek, Speravir, Jubobs, Adam Liter, MasroorApr 22 '14 at 23:26

Let me guess: you have `\usepackage[turkish]{babel}`. –  egreg Apr 22 '14 at 19:20
Possibly the first class loads `graphicx` while the second loads `graphics`. I recommend you explicitly load `graphicx` if you want to include image files. –  Nicola Talbot Apr 22 '14 at 19:22
If you're using `babel` for Turkish, look at tex.stackexchange.com/questions/32178/… –  egreg Apr 22 '14 at 19:26
@Speravir: But the latter does not contain the alternative solution of egreg via `xkeyval`. Thus some merging should be done. –  Heiko Oberdiek Apr 22 '14 at 21:36
@HeikoOberdiek: Or even better: `\newgeometry` doesn't work with Turkish babel package, because it does contain much more solution ways. –  Heiko Oberdiek Apr 22 '14 at 21:39

As egreg guessed your class has `\RequirePackage[english,turkish]{babel}` which apparently redefines `=` you need to locally set it back:
``````{\shorthandoff=%