I have been trying to implement the solution that is mentioned here to solve the error, "Cannot determine size of graphic".
However when I want to add \usepackage[dvipdfmx]{graphicx} \usepackage{bmpsize}; I get the error "Option clash for package graphicx."
I am using overleaf and I just can't figure out what is going on because I just copied the following code that I had used there before for another project which was working. Now it gets the error "Cannot determine size of graphic".
\begin{figure}[!htbp]
\includegraphics[width=\textwidth]{05_cost.png}
\centering
\caption{Probability density distribution comparisons of the true target and resampled instance spaces}
\label{fig:kd}
\end{figure}
One additional thing is, now I had to give the name as 05_cost.png while before, it basically worked only with 05_cost and simply just by using the graphicx package.
I would be so happy to hear some advices.
Thanks a lot.
graphicxpackage is loaded twice. Check carefully your\usepackagedeclarations. Edit: What happens wihout thebmpsizepackage? – GuM Jun 09 '16 at 14:13dvipdfmxoption as a global option (like\documentclass[dvipdfmx, <other options>]{article})? It can avoid option clash caused by packages which internally load thegraphicxpackage. – yudai-nkt Jun 09 '16 at 15:11graphicx, with the options you want, before that other package. If that doesn’t work, try adding\PassOptionsToPackage{<your options>}{graphicx}before the\usepackagedeclaration for that other package. – GuM Jun 09 '16 at 23:27